-
- Downloads
[FIX] l10n_it_edi: Generate correct XML for negative invoice lines
When creating an invoice with a positive line and a negative line, with different taxes, the DatiRiepilogo node for the tax of the negative line contained positive amounts when they should be negative. This is because we were applying `abs()` too naively in the XML template and in the code of _l10n_it_edi_prepare_fatturapa_tax_details. This bugfix commit changes the logic to no longer use abs(). We also include a test to check that the XML is correctly generated for credit notes. Back-port of #121933 opw-3316300 closes odoo/odoo#125198 X-original-commit: 17f336e4 Signed-off-by:Josse Colpaert <jco@odoo.com> Signed-off-by:
Antoine Dupuis (andu) <andu@odoo.com>
Loading
Please register or sign in to comment