[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:
Alexis de Lattre
2016-06-12 23:34:00 +02:00
parent f967db49fd
commit 80c0e7c782
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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>