From 80c0e7c78294bb8a5ab1e5508172dfa92da69ae3 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 12 Jun 2016 23:34:00 +0200 Subject: [PATCH] [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) --- intrastat_product/models/intrastat_product_declaration.py | 2 +- intrastat_product/views/intrastat_unit.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index a6789a1..6ac180f 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -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: diff --git a/intrastat_product/views/intrastat_unit.xml b/intrastat_product/views/intrastat_unit.xml index 2bfa2da..acbb3c6 100644 --- a/intrastat_product/views/intrastat_unit.xml +++ b/intrastat_product/views/intrastat_unit.xml @@ -19,7 +19,7 @@
- +