mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[FIX] intrastat_product: error message + Remove required=1
Because we can have intrastat unit that will never be mapped to an odoo unit (will always be set manually)
This commit is contained in:
@@ -288,7 +288,7 @@ class IntrastatProductDeclaration(models.Model):
|
||||
"Please correct the Intrastat Supplementary Unit "
|
||||
"settings and regenerate the lines or adjust the lines "
|
||||
"with Intrastat Code '%s' manually"
|
||||
) % inv_line.hs_code_id.local_code
|
||||
) % hs_code.display_name
|
||||
self._note += note
|
||||
return weight, suppl_unit_qty
|
||||
if target_uom.category_id == source_uom.category_id:
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<form string="Intrastat Supplementary Unit">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="uom_id" required="1"/>
|
||||
<field name="uom_id"/>
|
||||
<field name="description"/>
|
||||
<field name="active"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user