[FIX] account_edi_ubl_cii: handle paid invoice at import
The edi attachment (for every format in `account_edi_ubl_cii`) contains a tag indicating whether the invoice is fully/partially paid. Before this fix, when this tag was filled, a down payment section was created on the invoice. For a fully paid invoice, the resulting amount was then 0, so the invoice was marked as "Paid". This was wrong. The correct amounts need to be kept on the invoices. This fix no longer creates a down payment, instead a message is logged in the chatter. task-3264843 opw-3248200 closes odoo/odoo#120340 X-original-commit: 47905d21 Signed-off-by:Laurent Smet <las@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
Showing
- addons/account_edi_ubl_cii/i18n/account_edi_ubl_cii.pot 6 additions, 0 deletionsaddons/account_edi_ubl_cii/i18n/account_edi_ubl_cii.pot
- addons/account_edi_ubl_cii/models/account_edi_common.py 15 additions, 0 deletionsaddons/account_edi_ubl_cii/models/account_edi_common.py
- addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py 2 additions, 2 deletions...account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py
- addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py 2 additions, 2 deletionsaddons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py
- addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_cii_fr.py 1 addition, 1 deletion...s/l10n_account_edi_ubl_cii_tests/tests/test_xml_cii_fr.py
- addons/l10n_account_edi_ubl_cii_tests/tests/test_xml_ubl_be.py 2 additions, 2 deletions...s/l10n_account_edi_ubl_cii_tests/tests/test_xml_ubl_be.py
Loading
Please register or sign in to comment