From 228dfca412165ea1b684a2a155c3e1fe80077a6e Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 31 Dec 2021 16:32:50 +0100 Subject: [PATCH 1/3] [14.0]intrastat_product - fix amount_company_currency --- intrastat_product/models/intrastat_product_declaration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index 99add17..d490f5d 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -700,7 +700,8 @@ class IntrastatProductDeclaration(models.Model): ) total_inv_weight += weight - amount_company_currency = -inv_line.balance + sign = invoice.move_type in ("in_invoice", "out_refund") and 1 or -1 + amount_company_currency = sign * inv_line.balance total_inv_product_cc += amount_company_currency if inv_intrastat_line: From 9bf6023a7e504885ecb4eb4bf1a8ef49db9e0613 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 31 Dec 2021 16:11:24 +0000 Subject: [PATCH 2/3] intrastat_product 14.0.1.5.1 --- intrastat_product/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/__manifest__.py b/intrastat_product/__manifest__.py index deb8484..70ff04f 100644 --- a/intrastat_product/__manifest__.py +++ b/intrastat_product/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Intrastat Product", - "version": "14.0.1.5.0", + "version": "14.0.1.5.1", "category": "Intrastat", "license": "AGPL-3", "summary": "Base module for Intrastat Product", From 9095841ade0fcac335cd995f9f3f6d77d9446a26 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 31 Dec 2021 16:11:29 +0000 Subject: [PATCH 3/3] [UPD] addons table in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e55279..5aabc10 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Available addons addon | version | maintainers | summary --- | --- | --- | --- [intrastat_base](intrastat_base/) | 14.0.2.1.0 | | Base module for Intrastat reporting -[intrastat_product](intrastat_product/) | 14.0.1.5.0 | | Base module for Intrastat Product +[intrastat_product](intrastat_product/) | 14.0.1.5.1 | | Base module for Intrastat Product [intrastat_product_generic](intrastat_product_generic/) | 14.0.1.0.0 | | Generic Intrastat Product Declaration [product_harmonized_system](product_harmonized_system/) | 14.0.2.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Base module for Product Import/Export reports [product_harmonized_system_delivery](product_harmonized_system_delivery/) | 14.0.1.1.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Hide native hs_code field provided by the delivery module