Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3811][11.0][REF] stock_ext_sst #356

Merged
merged 7 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion product_publish_cron/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# A cron task that will publish products with custom domain and values.
# """,
"summary": """""",
"depends": ["stock_ext_sst"],
"depends": ["stock_quant_attribute"],
"data": ["data/cron_data.xml"],
"installable": True,
}
1 change: 1 addition & 0 deletions product_yahoo_auction_sst/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from . import product_template
from . import yahoo_product_state
from . import delivery_carrier_size
from . import stock_quant
13 changes: 13 additions & 0 deletions product_yahoo_auction_sst/models/stock_quant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2018 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class StockQuant(models.Model):
_inherit = "stock.quant"

yahoo_product_state_id = fields.Many2one(
related="product_id.yahoo_product_state_id",
string="Yahoo Product State",
)
24 changes: 0 additions & 24 deletions stock_ext_sst/__manifest__.py

This file was deleted.

172 changes: 0 additions & 172 deletions stock_ext_sst/i18n/ja.po

This file was deleted.

28 changes: 0 additions & 28 deletions stock_ext_sst/views/stock_picking_views.xml

This file was deleted.

44 changes: 0 additions & 44 deletions stock_ext_sst/wizard/stock_quant_publish_wizard.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import models
from . import wizard
19 changes: 19 additions & 0 deletions stock_quant_attribute/__manifest__.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delivery as a dependency?

Add website as a dependency.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2017-2018 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Quant Attribute",
"version": "11.0.2.0.0",
"author": "Quartile Limited",
"website": "https://www.quartile.co",
"category": "Stock",
"license": "AGPL-3",
"depends": [
"stock",
"website",
"stock_quant_list_view",
],
"data": [
"views/stock_quant_views.xml",
],
"installable": True,
}
41 changes: 41 additions & 0 deletions stock_quant_attribute/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_quant_attribute
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-02 12:37+0000\n"
"PO-Revision-Date: 2023-10-02 12:37+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_quant_attribute
#: model:ir.model.fields,field_description:stock_quant_attribute.field_stock_quant_default_code
msgid "Barcode"
msgstr "バーコード"

#. module: stock_quant_attribute
#: model:ir.model.fields,help:stock_quant_attribute.field_stock_quant_list_price
msgid "Base price to compute the customer price. Sometimes called the catalog price."
msgstr "顧客価格を計算するための基準価格。カタログ価格と呼ぶこともあります。"

#. module: stock_quant_attribute
#: model:ir.model,name:stock_quant_attribute.model_stock_quant
msgid "Quants"
msgstr "保管ロット"

#. module: stock_quant_attribute
#: model:ir.model.fields,field_description:stock_quant_attribute.field_stock_quant_list_price
msgid "Sale Price"
msgstr "販売価格"

#. module: stock_quant_attribute
#: model:ir.model.fields,field_description:stock_quant_attribute.field_stock_quant_website_published
msgid "Visible in Website"
msgstr "ウェブサイトに表示"
1 change: 1 addition & 0 deletions stock_quant_attribute/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_quant
25 changes: 25 additions & 0 deletions stock_quant_attribute/models/stock_quant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2018 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class StockQuant(models.Model):
_inherit = "stock.quant"

website_published = fields.Boolean(
related="product_id.website_published",
string="Visible in Website",
)
list_price = fields.Float(
related="product_id.product_tmpl_id.list_price", string="Sale Price",
)
# To improve search performance by product.
product_id = fields.Many2one(auto_join=True,)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please correct me if you have a different understanding of the reason of this change.

Suggested change
product_id = fields.Many2one(auto_join=True,)
# To improve search performance by product.
product_id = fields.Many2one(auto_join=True,)

default_code = fields.Char(
related="product_id.default_code",
string="Barcode",
store=True,
readonly=True,
index=True,
)
Loading
Loading