[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#118610
Signed-off-by:
Laurent Smet <las@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
Loading