Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] product_harmonized_system: Migration to 18.0 #288

Open
wants to merge 32 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
272c6c4
[13.0] [MIG] product harmonized system (#80)
Dec 19, 2019
5035ac0
[13.0][FIX]replace deprecated _company_default_get
luc-demeyer Mar 3, 2020
d8dfe1a
intrastat_product: Add xml_attachment_id field
alexis-via Jun 8, 2020
b28475f
[MIG] product_harmonized_system to v14
alexis-via Nov 19, 2020
94eee21
Translated using Weblate (Spanish)
Mat-moran Feb 21, 2021
11bf1df
Translated using Weblate (French)
Jul 4, 2021
8692aa9
[13.0] product_harmonized_system: do not require company on hs_code m…
AdriaGForgeFlow May 19, 2021
8845225
[MIG] hs_code_id company_dependent=True to False
alexis-via Dec 13, 2021
e0aed08
product_harmonized_system_delivery: hs_code is now store=True
alexis-via Dec 16, 2021
14049b0
[14.0]Intrastat Brexit support
luc-demeyer Dec 26, 2021
b7181fd
[14.0]intrastat - improved brexit support
luc-demeyer May 2, 2022
4340576
[IMP] add tag 'sheet' into form view of hs.code
yweng8111 Jun 17, 2022
ab828f8
Added translation using Weblate (Croatian)
badbole Jul 1, 2022
4530bf8
Translated using Weblate (Croatian)
badbole Jul 1, 2022
d35c654
[MIG] product_harmonized_system to v15
alexis-via Dec 16, 2021
f990a0d
[MIG] product_harmonized_system to v16
alexis-via Dec 27, 2022
97ee5e3
Update translation files
weblate Feb 12, 2023
1df7150
Translated using Weblate (Croatian)
badbole Feb 15, 2023
243c80d
Translated using Weblate (Spanish)
Gelo-fl Apr 17, 2023
a44c216
Translated using Weblate (French)
sanrav May 26, 2023
1f195c0
Translated using Weblate (French)
Jun 7, 2023
f6ded69
Added translation using Weblate (Italian)
mymage Jan 25, 2024
0a7dd27
Translated using Weblate (Italian)
mymage Jan 26, 2024
5bd6684
[FIX] product_harmonized_system: Change web_ribbon text to title to m…
victoralmau Jan 30, 2024
6c1bdbe
Translated using Weblate (Italian)
mymage Feb 8, 2024
e8b843d
[IMP] product_harmonized_system: pre-commit auto fixes
AndreuOForgeFlow Mar 11, 2024
4595ccb
[MIG] product_harmonized_system: Migration to 17.0
AndreuOForgeFlow Mar 11, 2024
95f4be9
[IMP] product_harmonized_system: solved ACL with an empty group
AndreuOForgeFlow Mar 14, 2024
970713e
[FIX] product_harmonized_system: Resolve AttributeError in hs_code _c…
AndreuOForgeFlow Mar 15, 2024
191149f
[IMP] product_harmonized_system: pre-commit execution
Nov 4, 2024
5d7b7b3
[MIG] product_harmonized_system: Migration to 18.0
Nov 4, 2024
fcc58b6
[ADD] add checklog-odoo.cfg
Nov 4, 2024
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
3 changes: 3 additions & 0 deletions checklog-odoo.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[checklog-odoo]
ignore=
WARNING.*0 failed, 0 error\(s\).*
127 changes: 127 additions & 0 deletions product_harmonized_system/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
===============================
Product Harmonized System Codes
===============================

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

.. |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/licence-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/18.0/product_harmonized_system
: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-18-0/intrastat-extrastat-18-0-product_harmonized_system
: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=18.0
:alt: Try me on Runboat

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

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

This module also handles the local/national extensions to the H.S.
codes. The import of the full nomenclature is not provided by this
module; it should be provided by localization modules.

You will also be able to configure the *country of origin* of a product,
which is often required on the proforma invoice for the customs.

This module should be usefull for all companies that export physical
goods abroad. This module is also used by the Intrastat modules for the
European Union, cf the *intrastat_product* module.

**Table of contents**

.. contents::
:local:

Installation
============

This module is NOT compatible with the *account_intrastat* module from
Odoo Enterprise.

Usage
=====

As this module only depends on the *product* module and that module
doesn't provide any menu entry, this module lacks a menu entry for H.S.
Codes. A menu entry for H.S. codes is provided by the module
*product_harmonized_system_stock*.

Once the H.S. codes are created, you will be able to set the H.S. code
on a product (under the *Information* tab) or on a product category. On
the product form, you will also be able to set the *Country of Origin*
of a product (for example, if the product is *made in China*, select
*China* as *Country of Origin*).

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%0Aversion:%2018.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
-------

* brain-tec AG
* Akretion
* Noviat

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

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

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/18.0/product_harmonized_system>`_ 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/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
31 changes: 31 additions & 0 deletions product_harmonized_system/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2018-2022 brain-tec AG (http://www.braintec-group.com)
# Copyright 2011-2022 Akretion (http://www.akretion.com)
# Copyright 2009-2022 Noviat (http://www.noviat.com)
# Copyright 2022 Tecnativa - Víctor Martínez
# @author Benjamin Henquet <info@noviat.com>
# @author Kumar Aberer <kumar.aberer@braintec-group.com>
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# @author Luc de Meyer <info@noviat.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Harmonized System Codes",
"version": "18.0.1.0.0",
"category": "Reporting",
"license": "AGPL-3",
"summary": "Base module for Product Import/Export reports",
"author": "brain-tec AG, Akretion, Noviat, Odoo Community Association (OCA)",
"maintainers": ["alexis-via", "luc-demeyer"],
"website": "https://github.com/OCA/intrastat-extrastat",
"depends": ["product"],
"excludes": ["account_intrastat"],
"data": [
"security/product_hs_security.xml",
"security/ir.model.access.csv",
"views/hs_code.xml",
"views/product_category.xml",
"views/product_template.xml",
],
"demo": ["demo/product_demo.xml"],
"installable": True,
}
60 changes: 60 additions & 0 deletions product_harmonized_system/demo/product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2011-2022 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 noupdate="1">
<record id="84715000" model="hs.code">
<field name="local_code">84715000</field>
<field name="description">Automatic data-processing machines (computers)</field>
</record>
<record id="84717050" model="hs.code">
<field name="local_code">84717050</field>
<field name="description">Storage units</field>
</record>
<record id="85340090" model="hs.code">
<field name="local_code">85340090</field>
<field name="description">Printed circuits</field>
</record>
<record id="product.product_product_3" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.tw" />
<field name="weight">8.7</field>
</record>
<record id="product.product_product_4" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.cn" />
<field name="weight">1.1</field>
</record>
<record id="product.product_product_5" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.cn" />
<field name="weight">8.2</field>
</record>
<record id="product.product_product_13" model="product.product">
<field name="hs_code_id" ref="84717050" />
<field name="origin_country_id" ref="base.sg" />
<field name="weight">0.01</field>
</record>
<record id="product.product_product_16" model="product.product">
<field name="hs_code_id" ref="84717050" />
<field name="origin_country_id" ref="base.sg" />
<field name="weight">0.67</field>
</record>
<record id="product.product_product_20" model="product.product">
<field name="hs_code_id" ref="85340090" />
<field name="origin_country_id" ref="base.tw" />
<field name="weight">1.05</field>
</record>
<record id="product.product_product_22" model="product.product">
<field name="hs_code_id" ref="85340090" />
<field name="origin_country_id" ref="base.tw" />
<field name="weight">0.3</field>
</record>
<record id="product.product_product_25" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.be" />
<field name="weight">3.3</field>
</record>
</odoo>
Loading
Loading