mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
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
This commit is contained in:
committed by
Lukas Tran
parent
c1e500000c
commit
21579d5ff2
@@ -4,7 +4,7 @@
|
||||
|
||||
{
|
||||
"name": "Product Harmonized System Codes - Delivery",
|
||||
"version": "14.0.1.1.0",
|
||||
"version": "14.0.1.2.0",
|
||||
"category": "Reporting",
|
||||
"license": "AGPL-3",
|
||||
"summary": "Hide native hs_code field provided by the delivery module",
|
||||
|
||||
@@ -7,5 +7,4 @@ from odoo import fields, models
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = "product.template"
|
||||
|
||||
# this field cannot be stored because hs_code_id is company dependent
|
||||
hs_code = fields.Char(related="hs_code_id.hs_code", readonly=True, store=False)
|
||||
hs_code = fields.Char(related="hs_code_id.hs_code", store=True)
|
||||
|
||||
Reference in New Issue
Block a user