-
- Downloads
[FIX] l10n_it_edi: format_alphanumeric
The Italian edi system accepts utf-8 encoded documents, but actually the
contents of the fields have to be latin-1 encoded. Format-alphanumeric
should remove any non-latin1 characters and replace them with a ?
Several fields to are also truncated before the function is applied.
This is so that these fields better match the specification. This will
help to prevent edi rejections in the future.
A test is also included to test with a few lines that should / should
not be adapted in by the format_alphanumeric function. Along with the
addition of the test, the test partner italian_partner_a's is_company
field is changed to True, since the partner is a company. The expected
xml has been altered to match the changes to partner_a.
closes odoo/odoo#88816
Task-id: 2826424
Signed-off-by:
Josse Colpaert <jco@odoo.com>
Showing
- addons/l10n_it_edi/data/invoice_it_template.xml 24 additions, 24 deletionsaddons/l10n_it_edi/data/invoice_it_template.xml
- addons/l10n_it_edi/models/account_invoice.py 4 additions, 0 deletionsaddons/l10n_it_edi/models/account_invoice.py
- addons/l10n_it_edi_sdicoop/tests/expected_xmls/IT00470550013_basis.xml 1 addition, 2 deletions...t_edi_sdicoop/tests/expected_xmls/IT00470550013_basis.xml
- addons/l10n_it_edi_sdicoop/tests/test_edi_xml.py 70 additions, 0 deletionsaddons/l10n_it_edi_sdicoop/tests/test_edi_xml.py
Please register or sign in to comment