product_harmonized_system_delivery: hs_code is now store=True

This commit is the "followup" of the change to company_dependent=False
on the fields hs_code_id on product.template and product.category.
Add groupby on hs_code_id on product.template search view
hs.code is now company_id=False by default

[UPD] Update product_harmonized_system.pot

product_harmonized_system 14.0.2.1.0

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system
Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/
This commit is contained in:
Alexis de Lattre
2021-12-16 17:23:37 +01:00
parent 6f16302a2e
commit a2572d4a08
6 changed files with 18 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
{
"name": "Product Harmonized System Codes",
"version": "14.0.2.0.0",
"version": "14.0.2.1.0",
"category": "Reporting",
"license": "AGPL-3",
"summary": "Base module for Product Import/Export reports",

View File

@@ -99,6 +99,7 @@ msgstr "Nombre mostrado"
#: model:ir.model.fields,field_description:product_harmonized_system.field_product_product__hs_code_id
#: model:ir.model.fields,field_description:product_harmonized_system.field_product_template__hs_code_id
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.product_template_search_view
msgid "H.S. Code"
msgstr "Código HS"

View File

@@ -100,6 +100,7 @@ msgstr "Nom affiché"
#: model:ir.model.fields,field_description:product_harmonized_system.field_product_product__hs_code_id
#: model:ir.model.fields,field_description:product_harmonized_system.field_product_template__hs_code_id
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.product_template_search_view
msgid "H.S. Code"
msgstr "Code S.H."

View File

@@ -93,6 +93,7 @@ msgstr ""
#: model:ir.model.fields,field_description:product_harmonized_system.field_product_product__hs_code_id
#: model:ir.model.fields,field_description:product_harmonized_system.field_product_template__hs_code_id
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.product_template_search_view
msgid "H.S. Code"
msgstr ""

View File

@@ -53,7 +53,7 @@ class HSCode(models.Model):
@api.model
def _default_company_id(self):
return self.env.company
return False
@api.depends("local_code")
def _compute_hs_code(self):

View File

@@ -23,4 +23,17 @@
</field>
</field>
</record>
<record id="product_template_search_view" model="ir.ui.view">
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view" />
<field name="arch" type="xml">
<filter name="categ_id" position="after">
<filter
string="H.S. Code"
name="hs_code_groupby"
context="{'group_by': 'hs_code_id'}"
/>
</filter>
</field>
</record>
</odoo>