Skip to content

Commit 0fe0b54

Browse files
alvaroGC-S73sbiosca-s73
authored andcommitted
[MIG] product_harmonized_system: Migration to 19.0
1 parent 0091bb8 commit 0fe0b54

5 files changed

Lines changed: 17 additions & 20 deletions

File tree

product_harmonized_system/README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Product Harmonized System Codes
3434

3535
This module contains the objects for Harmonised System Codes (H.S.
3636
codes). The full nomenclature is available from the World Customs
37-
Organisation <`http://www.wcoomd.org/\\> <http://www.wcoomd.org/\>>`__.
38-
These codes are usually required on the Proforma invoices that are
39-
attached to the packages that are shipped abroad.
37+
Organisation <http://www.wcoomd.org/>. These codes are usually required
38+
on the Proforma invoices that are attached to the packages that are
39+
shipped abroad.
4040

4141
This module also handles the local/national extensions to the H.S.
4242
codes. The import of the full nomenclature is not provided by this
@@ -97,10 +97,10 @@ Authors
9797
Contributors
9898
------------
9999

100-
- Alexis de Lattre, Akretion <alexis.delattre@akretion.com>
101-
- Luc De Meyer, Noviat <info@noviat.com>
102-
- Kumar Aberer, brain-tec AG <kumar.aberer@braintec-group.com>
103-
- Nhan Tran <nhant@trobz.com>
100+
- Alexis de Lattre, Akretion <alexis.delattre@akretion.com>
101+
- Luc De Meyer, Noviat <info@noviat.com>
102+
- Kumar Aberer, brain-tec AG <kumar.aberer@braintec-group.com>
103+
- Nhan Tran <nhant@trobz.com>
104104

105105
Maintainers
106106
-----------

product_harmonized_system/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
{
1212
"name": "Product Harmonized System Codes",
13-
"version": "18.0.1.2.0",
13+
"version": "19.0.1.0.0",
1414
"category": "Reporting",
1515
"license": "AGPL-3",
1616
"summary": "Base module for Product Import/Export reports",

product_harmonized_system/models/hs_code.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,10 @@ def _compute_display_name(self):
9797
name = shorten(name, 55)
9898
this.display_name = name
9999

100-
_sql_constraints = [
101-
(
102-
"local_code_company_uniq",
103-
"unique(local_code, company_id)",
104-
"This code already exists for this company !",
105-
)
106-
]
100+
_local_code_company_uniq = models.Constraint(
101+
"unique(local_code, company_id)",
102+
"This code already exists for this company !",
103+
)
107104

108105
@api.model_create_multi
109106
def create(self, vals_list):

product_harmonized_system/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ <h1>Product Harmonized System Codes</h1>
377377
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/intrastat-extrastat/tree/19.0/product_harmonized_system"><img alt="OCA/intrastat-extrastat" src="https://img.shields.io/badge/github-OCA%2Fintrastat--extrastat-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/intrastat-extrastat-19-0/intrastat-extrastat-19-0-product_harmonized_system"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/intrastat-extrastat&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This module contains the objects for Harmonised System Codes (H.S.
379379
codes). The full nomenclature is available from the World Customs
380-
Organisation &lt;<a class="reference external" href="http://www.wcoomd.org/&gt;">http://www.wcoomd.org/\&gt;</a>.
381-
These codes are usually required on the Proforma invoices that are
382-
attached to the packages that are shipped abroad.</p>
380+
Organisation &lt;<a class="reference external" href="http://www.wcoomd.org/">http://www.wcoomd.org/</a>&gt;. These codes are usually required
381+
on the Proforma invoices that are attached to the packages that are
382+
shipped abroad.</p>
383383
<p>This module also handles the local/national extensions to the H.S.
384384
codes. The import of the full nomenclature is not provided by this
385385
module; it should be provided by localization modules.</p>

product_harmonized_system/views/product_template.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<field name="model">product.template</field>
2727
<field name="inherit_id" ref="product.product_template_search_view" />
2828
<field name="arch" type="xml">
29-
<filter name="categ_id" position="after">
29+
<xpath expr="//field[@name='categ_id']" position="after">
3030
<filter
3131
string="H.S. Code"
3232
name="hs_code_groupby"
@@ -37,7 +37,7 @@
3737
name="origin_country_groupby"
3838
context="{'group_by': 'origin_country_id'}"
3939
/>
40-
</filter>
40+
</xpath>
4141
</field>
4242
</record>
4343
</odoo>

0 commit comments

Comments
 (0)