From be7ca3758440e300960ddca0cd9e4db35b300b69 Mon Sep 17 00:00:00 2001 From: Julien Van Roy <juvr@odoo.com> Date: Wed, 3 May 2023 10:15:09 +0000 Subject: [PATCH] [FIX] l10n_account_edi_ubl_cii_tests: adapt test with prepaid amount Adapt the tests after commit https://github.com/odoo/odoo/commit/47905d21ab65f985291d78cb7ecb78f2f7cdcf67 A down payment is no longer created when a prepaid amount is detected in a UBL/CII attachment. closes odoo/odoo#120653 Signed-off-by: Laurent Smet <las@odoo.com> --- .../l10n_account_edi_ubl_cii_tests/tests/test_xml_cii_fr.py | 2 +- .../l10n_account_edi_ubl_cii_tests/tests/test_xml_ubl_be.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_cii_fr.py b/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_cii_fr.py index a2ee62a5a0e5..8bb63ac77e0b 100644 --- a/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_cii_fr.py +++ b/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_cii_fr.py @@ -381,4 +381,4 @@ class TestCIIFR(TestUBLCommon): amount_total=108, amount_tax=8, list_line_subtotals=[-5, 10, 60, 28, 7]) # source: Facture_F20220029_EN_16931_K.pdf, credit note labelled as an invoice with negative amounts self._assert_imported_invoice_from_file(subfolder=subfolder, filename='facturx_invoice_negative_amounts.xml', - amount_total=90, amount_tax=0, list_line_subtotals=[-5, 10, 0, -10, 60, 30, 5], move_type='in_refund') + amount_total=100, amount_tax=0, list_line_subtotals=[-5, 10, 60, 30, 5], move_type='in_refund') diff --git a/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_ubl_be.py b/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_ubl_be.py index 11696930bfca..0d6a3e504b55 100644 --- a/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_ubl_be.py +++ b/addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_ubl_be.py @@ -336,8 +336,8 @@ class TestUBLBE(TestUBLCommon): # Source: https://github.com/OpenPEPPOL/peppol-bis-invoice-3/tree/master/rules/examples subfolder = 'tests/test_files/from_peppol-bis-invoice-3_doc' # source: Allowance-example.xml - self._assert_imported_invoice_from_file(subfolder=subfolder, filename='bis3_allowance.xml', amount_total=6125, - amount_tax=1225, list_line_subtotals=[200, -200, 0, -1000, 4000, 1000, 900]) + self._assert_imported_invoice_from_file(subfolder=subfolder, filename='bis3_allowance.xml', amount_total=7125, + amount_tax=1225, list_line_subtotals=[200, -200, 4000, 1000, 900]) # source: base-creditnote-correction.xml self._assert_imported_invoice_from_file(subfolder=subfolder, filename='bis3_credit_note.xml', amount_total=1656.25, amount_tax=331.25, list_line_subtotals=[25, 2800, -1500], move_type='in_refund') -- GitLab