-
-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] migrate sale_order_secondary_unit from 12.0 to 13.0
- Loading branch information
1 parent
76625f3
commit 39c5775
Showing
12 changed files
with
139 additions
and
121 deletions.
There are no files selected for viewing
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 @@ | ||
product-attribute |
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,24 +1,21 @@ | ||
# Copyright 2018 Tecnativa - Carlos Dauden | ||
# Copyright 2018-2020 Tecnativa - Carlos Dauden | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
'name': 'Sale Order Secondary Unit', | ||
'summary': 'Sale product in a secondary unit', | ||
'version': '12.0.1.0.0', | ||
'development_status': 'Beta', | ||
'category': 'Sale', | ||
'website': 'https://github.com/OCA/sale-workflow', | ||
'author': 'Tecnativa, Odoo Community Association (OCA)', | ||
'license': 'AGPL-3', | ||
'application': False, | ||
'installable': True, | ||
'auto_install': True, | ||
'depends': [ | ||
'sale', | ||
'product_secondary_unit', | ||
], | ||
'data': [ | ||
'views/product_views.xml', | ||
'views/sale_order_views.xml', | ||
'report/sale_report_templates.xml', | ||
"name": "Sale Order Secondary Unit", | ||
"summary": "Sale product in a secondary unit", | ||
"version": "13.0.1.0.0", | ||
"development_status": "Beta", | ||
"category": "Sale", | ||
"website": "https://github.com/OCA/sale-workflow", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"auto_install": True, | ||
"depends": ["sale", "product_secondary_unit"], | ||
"data": [ | ||
"views/product_views.xml", | ||
"views/sale_order_views.xml", | ||
"report/sale_report_templates.xml", | ||
], | ||
} |
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
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,12 +1,11 @@ | ||
# Copyright 2018 Tecnativa - Sergio Teruel | ||
# Copyright 2018-2020 Tecnativa - Sergio Teruel | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from odoo import fields, models | ||
|
||
|
||
class ProductTemplate(models.Model): | ||
_inherit = 'product.template' | ||
_inherit = "product.template" | ||
|
||
sale_secondary_uom_id = fields.Many2one( | ||
comodel_name='product.secondary.unit', | ||
string='Default secondary unit for sales', | ||
comodel_name="product.secondary.unit", string="Default secondary unit for sales" | ||
) |
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
Oops, something went wrong.