diff --git a/addons/delivery_hs_code/__init__.py b/addons/delivery_hs_code/__init__.py new file mode 100644 index 00000000000..dc5e6b693d1 --- /dev/null +++ b/addons/delivery_hs_code/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import models diff --git a/addons/delivery_hs_code/__manifest__.py b/addons/delivery_hs_code/__manifest__.py new file mode 100644 index 00000000000..661c330599d --- /dev/null +++ b/addons/delivery_hs_code/__manifest__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + + +{ + 'name': 'Delivery HS Code', + 'version': '1.0', + 'category': 'Stock', + 'description': """ +Set back field hs_code on pruduct template. +============================================================== + +""", + 'depends': ['delivery'], + 'data': [ + 'views/product_template_view.xml', + ], + 'installable': True, + 'auto_install': True, +} diff --git a/addons/delivery_hs_code/models/__init__.py b/addons/delivery_hs_code/models/__init__.py new file mode 100644 index 00000000000..3a8ca74201b --- /dev/null +++ b/addons/delivery_hs_code/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import product_template diff --git a/addons/delivery_hs_code/models/product_template.py b/addons/delivery_hs_code/models/product_template.py new file mode 100644 index 00000000000..79465b50303 --- /dev/null +++ b/addons/delivery_hs_code/models/product_template.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + hs_code = fields.Char(string="HS Code", help="Standardized code for international shipping and goods declaration") diff --git a/addons/delivery_hs_code/views/product_template_view.xml b/addons/delivery_hs_code/views/product_template_view.xml new file mode 100644 index 00000000000..8ecc08a4be8 --- /dev/null +++ b/addons/delivery_hs_code/views/product_template_view.xml @@ -0,0 +1,15 @@ + + + + + product.template.form.hs_code + product.template + + + + + + + + +