-
-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] stock_putaway_product_template: Migration to 13.0
- Loading branch information
1 parent
cd4680d
commit f954fef
Showing
21 changed files
with
188 additions
and
404 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
setup/stock_putaway_product_template/odoo/addons/stock_putaway_product_template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_putaway_product_template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import tests | ||
from .hooks import post_init_hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Putaway strategies on product form view", | ||
"summary": "Edit putaway strategies directly from the product form view", | ||
"version": "12.0.1.0.0", | ||
"name": "Product template in putaway strategies", | ||
"summary": "Add product template in putaway strategies from the product view", | ||
"version": "13.0.1.0.0", | ||
"category": "Inventory", | ||
"website": "https://github.com/OCA/stock-logistics-warehouse", | ||
"author": "Akretion, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"depends": ["stock"], | ||
"external_dependencies": {"python": ["openupgradelib"]}, | ||
"data": ["views/product.xml"], | ||
"demo": ["demo/putaway_strategies.xml"], | ||
"data": ["views/stock_putaway_rule_views.xml"], | ||
"maintainers": ["kevinkhao", "sebastienbeau"], | ||
"post_init_hook": "post_init_hook", | ||
} |
31 changes: 0 additions & 31 deletions
31
stock_putaway_product_template/demo/putaway_strategies.xml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
88 changes: 0 additions & 88 deletions
88
stock_putaway_product_template/i18n/stock_putaway_product_form.pot
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
stock_putaway_product_template/i18n/stock_putaway_product_template.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_putaway_product_template | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 13.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-02-10 15:21+0000\n" | ||
"PO-Revision-Date: 2021-02-10 15:21+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_putaway_product_template | ||
#: model:ir.model.fields,field_description:stock_putaway_product_template.field_stock_putaway_rule__product_tmpl_id | ||
msgid "Product Tmpl" | ||
msgstr "" | ||
|
||
#. module: stock_putaway_product_template | ||
#: model:ir.model,name:stock_putaway_product_template.model_stock_putaway_rule | ||
msgid "Putaway Rule" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from . import product_product | ||
from . import product_template | ||
from . import putaway_strategy | ||
# from . import product_putaway | ||
from . import product | ||
from . import stock_putaway_rule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
# Copyright 2021 Tecnativa - Víctor Martínez | ||
|
||
from odoo import models | ||
|
||
|
||
class ProductTemplate(models.Model): | ||
_inherit = "product.template" | ||
|
||
def action_view_related_putaway_rules(self): | ||
self.ensure_one() | ||
domain = [ | ||
"|", | ||
"|", | ||
("product_tmpl_id", "=", self.id), | ||
("category_id", "=", self.categ_id.id), | ||
("product_id.product_tmpl_id", "=", self.id), | ||
] | ||
return self._get_action_view_related_putaway_rules(domain) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* Sergio Teruel | ||
* Víctor Martínez |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
This module adds an easy way to modify product-specific putaway strategies from the product view for a better UX. | ||
This module add product template in putaway strategies from the product view to not need defined putaway strategies for all variants. |
Oops, something went wrong.