From a457bd3b1c9c89302ad9b2235859f94ef13ea9a5 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 6 Dec 2018 19:34:56 +0100 Subject: [PATCH] Add new module product_harmonized_system_delivery (hide native hs_code field) Finalize port to v11 --- .../__init__.py | 0 .../__manifest__.py | 16 ++++++++++++++ .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 1 + .../views/product_template.xml | 22 +++++++++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 product_harmonized_system_delivery/__init__.py create mode 100644 product_harmonized_system_delivery/__manifest__.py create mode 100644 product_harmonized_system_delivery/readme/CONTRIBUTORS.rst create mode 100644 product_harmonized_system_delivery/readme/DESCRIPTION.rst create mode 100644 product_harmonized_system_delivery/views/product_template.xml diff --git a/product_harmonized_system_delivery/__init__.py b/product_harmonized_system_delivery/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/product_harmonized_system_delivery/__manifest__.py b/product_harmonized_system_delivery/__manifest__.py new file mode 100644 index 0000000..725f53c --- /dev/null +++ b/product_harmonized_system_delivery/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2018 Akretion France (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Product Harmonized System Codes - Delivery', + 'version': '11.0.1.0.0', + 'category': 'Reporting', + 'license': 'AGPL-3', + 'summary': 'Hide native hs_code field provided by the delivery module', + 'author': 'Akretion, Odoo Community Association (OCA)', + 'depends': ['delivery', 'product_harmonized_system'], + 'data': ['views/product_template.xml'], + 'installable': True, + 'auto_install': True, +} diff --git a/product_harmonized_system_delivery/readme/CONTRIBUTORS.rst b/product_harmonized_system_delivery/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..ff65d68 --- /dev/null +++ b/product_harmonized_system_delivery/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alexis de Lattre diff --git a/product_harmonized_system_delivery/readme/DESCRIPTION.rst b/product_harmonized_system_delivery/readme/DESCRIPTION.rst new file mode 100644 index 0000000..ecd76ab --- /dev/null +++ b/product_harmonized_system_delivery/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +The OCA module *product_harmonized_system* adds a many2one field *hs_code_id* on product templates that points to an *H.S. Code* object. But the *delivery* module from the official addons adds a char field *hs_code* on product templates, which has the same purpose, but we can't use it because we need structured data for H.S. codes. This module hides the *hs_code* field added by the *delivery* module, to avoid confusion. diff --git a/product_harmonized_system_delivery/views/product_template.xml b/product_harmonized_system_delivery/views/product_template.xml new file mode 100644 index 0000000..d9a6695 --- /dev/null +++ b/product_harmonized_system_delivery/views/product_template.xml @@ -0,0 +1,22 @@ + + + + + + + + hide_native_hs_code_field.product.template.form + product.template + + + + 1 + + + + +