From a9f19d09dd45a99cfa32be4bc400f7f0f5be6a80 Mon Sep 17 00:00:00 2001 From: Uku Lagle Date: Wed, 12 May 2021 17:06:55 +0000 Subject: [PATCH] [FIX] account_facturx: gross price must be subtotal not unit price Facturx expects line price to be subtotal, not unit price. Odoo parser is also dividing the gross price by quantity. So before this commit, importing PDF invoice rendered by Odoo, results in: unit price / quantity. The bug was introduced in odoo/odoo#53894 closes odoo/odoo#77527 X-original-commit: 3769a6cdda259a839f00267d99a57f2aa3d89aa1 Signed-off-by: Quentin De Paoli (qdp) Signed-off-by: Laurent Smet --- addons/account_edi_facturx/data/facturx_templates.xml | 2 +- addons/account_edi_facturx/tests/test_facturx.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_edi_facturx/data/facturx_templates.xml b/addons/account_edi_facturx/data/facturx_templates.xml index 0cb10deced4..a076b42a0ec 100644 --- a/addons/account_edi_facturx/data/facturx_templates.xml +++ b/addons/account_edi_facturx/data/facturx_templates.xml @@ -29,7 +29,7 @@ + t-esc="format_monetary(line.price_subtotal, record.currency_id)"/> diff --git a/addons/account_edi_facturx/tests/test_facturx.py b/addons/account_edi_facturx/tests/test_facturx.py index e220bf3dd40..de1b2497aa8 100644 --- a/addons/account_edi_facturx/tests/test_facturx.py +++ b/addons/account_edi_facturx/tests/test_facturx.py @@ -82,7 +82,7 @@ class TestAccountEdiFacturx(AccountEdiTestCommon): - 275.000 + 1100.000 true @@ -164,7 +164,7 @@ class TestAccountEdiFacturx(AccountEdiTestCommon): applied_xpath = ''' - 275.000 + 1000.000