Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d6bae74
Add new module product_harmonized_system_delivery (hide native hs_cod…
alexis-via Dec 6, 2018
97c550c
Prepare v12 branch
alexis-via May 27, 2019
bf6b514
[MIG] Migrate all modules from v11 to v12
alexis-via May 28, 2019
2ddb0d2
[REF] product_harmonized_system_delivery: Black python code
Jan 9, 2020
3ce1f75
[MIG] product_harmonized_system_delivery: Migration to 13.0
Jan 9, 2020
40c6bcb
[MIG] product_harmonized_system_delivery to v14
alexis-via Nov 19, 2020
6bc1f34
[IMP] product_harmonized_system_delivery: Make product.template#hs_co…
hbrunn Aug 10, 2021
3344c92
product_harmonized_system_delivery: hs_code is now store=True
alexis-via Dec 16, 2021
150b568
[MIG] product_harmonized_system_delivery to v15
alexis-via Dec 3, 2022
3c04f0d
Update translation files
weblate Dec 3, 2022
4730423
[MIG] product_harmonized_system_delivery to v16
alexis-via Dec 27, 2022
6049dbb
Added translation using Weblate (Croatian)
badbole Feb 15, 2023
b2463c0
Translated using Weblate (Croatian)
badbole Feb 15, 2023
7270e18
Translated using Weblate (Spanish)
Gelo-fl Apr 17, 2023
3fb28ff
Added translation using Weblate (French)
Jun 7, 2023
96028ca
Translated using Weblate (French)
Jun 7, 2023
4684aaf
Translated using Weblate (Spanish)
Ivorra78 Aug 4, 2023
eb4c7a5
Added translation using Weblate (Italian)
mymage Jan 26, 2024
695d663
Translated using Weblate (Italian)
mymage Jan 26, 2024
2795754
[IMP] product_harmonized_system_delivery: pre-commit auto fixes
AndreuOForgeFlow Mar 15, 2024
bc5c1d1
[MIG] product_harmonized_system_delivery: Migration to 17.0
AndreuOForgeFlow Mar 15, 2024
cd31a2c
[MIG] product_harmonized_system_delivery: Migration to 18.0
Nov 4, 2024
94bbee8
Update translation files
weblate Dec 3, 2024
dd1aad9
Translated using Weblate (Italian)
mymage Dec 4, 2024
7f5efa8
Translated using Weblate (Italian)
mymage May 29, 2025
de96eaf
[MIG] product_harmonized_system_delivery: Migration to 19.0
bizzappdev Dec 1, 2025
b25053f
[IMP] product_harmonized_system_delivery: Added test cases.
bizzappdev Dec 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions product_harmonized_system_delivery/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==========================================
Product Harmonized System Codes - Delivery
==========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8e136e5cbfc9ea3539de39889b293551dd7d209fa12db17c5cc5b335735e98c9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fintrastat--extrastat-lightgray.png?logo=github
:target: https://github.com/OCA/intrastat-extrastat/tree/19.0/product_harmonized_system_delivery
:alt: OCA/intrastat-extrastat
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/intrastat-extrastat-19-0/intrastat-extrastat-19-0-product_harmonized_system_delivery
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/intrastat-extrastat&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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 *stock_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 *stock_delivery* module, to avoid
confusion.

Since Odoo v16, the *stock_delivery* module also adds a many2one field
*country_of_origin*, which is similar to the many2one field
*origin_country_id* of the OCA module *product_harmonized_system*. This
module also hides the *country_of_origin* field added by the
*stock_delivery* module.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/intrastat-extrastat/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/intrastat-extrastat/issues/new?body=module:%20product_harmonized_system_delivery%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Akretion

Contributors
------------

- Alexis de Lattre <[email protected]>
- Guewen Baconnier <[email protected]>
- Nhan Tran <[email protected]>

Other credits
-------------

The migration of this module from 18.0 to 19.0 was financially supported
by:

- Camptocamp

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via
.. |maintainer-luc-demeyer| image:: https://github.com/luc-demeyer.png?size=40px
:target: https://github.com/luc-demeyer
:alt: luc-demeyer

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via| |maintainer-luc-demeyer|

This module is part of the `OCA/intrastat-extrastat <https://github.com/OCA/intrastat-extrastat/tree/19.0/product_harmonized_system_delivery>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_harmonized_system_delivery/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions product_harmonized_system_delivery/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2018-2022 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Harmonized System Codes - Delivery",
"version": "19.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)",
"maintainers": ["alexis-via", "luc-demeyer"],
"website": "https://github.com/OCA/intrastat-extrastat",
"depends": ["stock_delivery", "product_harmonized_system"],
"data": ["views/product_template.xml"],
"installable": True,
"auto_install": True,
}
61 changes: 61 additions & 0 deletions product_harmonized_system_delivery/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-17 17:33+0000\n"
"PO-Revision-Date: 2023-08-04 13:10+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__hs_code
msgid "HS Code"
msgstr "Código HS"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid "Origin of Goods"
msgstr "Origen de las mercancías"

#. module: product_harmonized_system_delivery
#: model:ir.model,name:product_harmonized_system_delivery.model_product_template
msgid "Product"
msgstr "Producto"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid ""
"Rules of origin determine where goods originate, i.e. not where they have "
"been shipped from, but where they have been produced or manufactured.\n"
"As such, the ‘origin’ is the 'economic nationality' of goods traded in "
"commerce."
msgstr ""
"Las normas de origen determinan de dónde proceden los bienes, es decir, no "
"de dónde se han enviado, sino dónde se han producido o fabricado.\n"
"Como tal, el \"origen\" es la \"nacionalidad económica\" de los bienes "
"objeto de comercio."

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__hs_code
msgid "Standardized code for international shipping and goods declaration."
msgstr ""

#~ msgid ""
#~ "Standardized code for international shipping and goods declaration. At "
#~ "the moment, only used for the FedEx shipping provider."
#~ msgstr ""
#~ "Código estandarizado para envío internacional y declaración de "
#~ "mercancías. De momento , sólo se usa para el proveedor FedEx."

#~ msgid "Product Template"
#~ msgstr "Plantilla de Producto"
63 changes: 63 additions & 0 deletions product_harmonized_system_delivery/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_harmonized_system_delivery
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-06-07 19:08+0000\n"
"Last-Translator: Alexis de Lattre <[email protected]>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__hs_code
msgid "HS Code"
msgstr "Code SH"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid "Origin of Goods"
msgstr "Origine des marchandises"

#. module: product_harmonized_system_delivery
#: model:ir.model,name:product_harmonized_system_delivery.model_product_template
msgid "Product"
msgstr "Article"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid ""
"Rules of origin determine where goods originate, i.e. not where they have "
"been shipped from, but where they have been produced or manufactured.\n"
"As such, the ‘origin’ is the 'economic nationality' of goods traded in "
"commerce."
msgstr ""
"Les règles d'origine déterminent l'origine des marchandises, c'est-à-dire "
"non pas l'endroit d'où elles ont été expédiées, mais l'endroit où elles ont "
"été produites ou fabriquées.\n"
"En tant que telle, l'\"origine\" est la \"nationalité économique\" des "
"marchandises échangées dans le commerce."

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__hs_code
msgid "Standardized code for international shipping and goods declaration."
msgstr ""

#~ msgid ""
#~ "Standardized code for international shipping and goods declaration. At "
#~ "the moment, only used for the FedEx shipping provider."
#~ msgstr ""
#~ "Code standardisé pour les expéditions internationales et les déclarations "
#~ "de marchandises. Pour l'instant, il n'est utilisé que par le prestataire "
#~ "de services d'expédition FedEx."
61 changes: 61 additions & 0 deletions product_harmonized_system_delivery/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_harmonized_system_delivery
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-02-15 19:22+0000\n"
"Last-Translator: Bole <[email protected]>\n"
"Language-Team: none\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__hs_code
msgid "HS Code"
msgstr "HS Šifra"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid "Origin of Goods"
msgstr "Porijeklo robe"

#. module: product_harmonized_system_delivery
#: model:ir.model,name:product_harmonized_system_delivery.model_product_template
msgid "Product"
msgstr "Proizvod"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid ""
"Rules of origin determine where goods originate, i.e. not where they have "
"been shipped from, but where they have been produced or manufactured.\n"
"As such, the ‘origin’ is the 'economic nationality' of goods traded in "
"commerce."
msgstr ""
"Pravila porijekla određuju porijeklo robe. npr, ne od kuda je roba "
"dopremljena, nego gdje je roba proizvedena. \n"
"Ako takvo, 'Porijeklo' je 'Ekonomska nacionalnost' trgovačke robe."

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__hs_code
msgid "Standardized code for international shipping and goods declaration."
msgstr ""

#~ msgid ""
#~ "Standardized code for international shipping and goods declaration. At "
#~ "the moment, only used for the FedEx shipping provider."
#~ msgstr ""
#~ "Standardizirana šifra za međunarodni transport i deklaraciju robe. "
#~ "Trenutno korišteno samo kod FedEX transporta."
63 changes: 63 additions & 0 deletions product_harmonized_system_delivery/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_harmonized_system_delivery
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-05-29 16:26+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__hs_code
msgid "HS Code"
msgstr "Codice S.A."

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid "Origin of Goods"
msgstr "Origine della merce"

#. module: product_harmonized_system_delivery
#: model:ir.model,name:product_harmonized_system_delivery.model_product_template
msgid "Product"
msgstr "Prodotto"

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__country_of_origin
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__country_of_origin
msgid ""
"Rules of origin determine where goods originate, i.e. not where they have "
"been shipped from, but where they have been produced or manufactured.\n"
"As such, the ‘origin’ is the 'economic nationality' of goods traded in "
"commerce."
msgstr ""
"Le regole dell'origine definiscono da dove si origina la merce, i.e. non da "
"dove è stata spedita ma dove è stata prodotta o lavorata.\n"
"In quanto tale, l’“origine” è la “nazionalità economica” dei beni scambiati "
"nel commercio."

#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__hs_code
msgid "Standardized code for international shipping and goods declaration."
msgstr ""
"Codice standardizzato per la spedizione internazionale e dichiarazione della "
"merce."

#~ msgid ""
#~ "Standardized code for international shipping and goods declaration. At "
#~ "the moment, only used for the FedEx shipping provider."
#~ msgstr ""
#~ "Codice standardizzato per la spedizione internazionale e la dichiarazione "
#~ "di beni. Al momento, utilizzato solamente per il corriere FedEx."
Loading