Skip to content

Commit

Permalink
[FIX] intrastat_product: error message + Remove required=1
Browse files Browse the repository at this point in the history
Because we can have intrastat unit that will never be mapped to an odoo unit (will always be set manually)
  • Loading branch information
alexis-via committed Mar 6, 2023
1 parent f967db4 commit 80c0e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion intrastat_product/models/intrastat_product_declaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _get_weight_and_supplunits(self, inv_line, hs_code):
"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:
Expand Down
2 changes: 1 addition & 1 deletion intrastat_product/views/intrastat_unit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 80c0e7c

Please sign in to comment.