From 403c4629e2593f0872ab9fed2334b72eed6d1bb0 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Thu, 19 Dec 2019 17:26:26 +0100 Subject: [PATCH] fix ._compute_quantity --- intrastat_product/models/intrastat_product_declaration.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index b1e6572..32128d2 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -354,8 +354,7 @@ class IntrastatProductDeclaration(models.Model): "the lines or adjust the impacted lines manually") self._note += note return weight, suppl_unit_qty - qty = source_uom._compute_quantity( - line_qty, product.uom_id, raise_if_failure=False) + qty = source_uom._compute_quantity(line_qty, product.uom_id) weight = product.weight * qty return weight, suppl_unit_qty