mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
Add new module product_harmonized_system_delivery (hide native hs_code field)
Finalize port to v11
This commit is contained in:
0
product_harmonized_system_delivery/__init__.py
Normal file
0
product_harmonized_system_delivery/__init__.py
Normal file
16
product_harmonized_system_delivery/__manifest__.py
Normal file
16
product_harmonized_system_delivery/__manifest__.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Copyright 2018 Akretion France (http://www.akretion.com)
|
||||||
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# 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,
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright 2018 Akretion France (http://www.akretion.com/)
|
||||||
|
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<odoo>
|
||||||
|
|
||||||
|
<!-- product.template form view -->
|
||||||
|
<record id="product_template_hs_code" model="ir.ui.view">
|
||||||
|
<field name="name">hide_native_hs_code_field.product.template.form</field>
|
||||||
|
<field name="model">product.template</field>
|
||||||
|
<field name="inherit_id" ref="delivery.product_template_hs_code" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="hs_code" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user