-
- Downloads
[FIX] l10n_it_edi: Vendor bill is not being created from PEC
When one or more vendor bills in Italian e-invoice format were sent to the registered PEC mailbox, if they are in the PKCS#7 format ('.xml.p7m'), nothing happened.
The e-invoice content should be automatically decoded and the invoice should be created as soon as the xml file is fetched from the PEC mailbox.
A new remove_signature function has been added in a tools/remove_signature.py file to handle this case.
The OpenSSL and pyOpenSSL libraries must be installed.
They are not in requirements.txt but they're probably available.
New tests has been provided for the signed email reading method.
opw-2460485
closes odoo/odoo#71138
Signed-off-by:
Josse Colpaert <jco@openerp.com>
Showing
- addons/l10n_it_edi/__init__.py 1 addition, 0 deletionsaddons/l10n_it_edi/__init__.py
- addons/l10n_it_edi/models/ir_mail_server.py 15 additions, 3 deletionsaddons/l10n_it_edi/models/ir_mail_server.py
- addons/l10n_it_edi/tests/expected_xmls/IT01234567890_FPR01.xml.p7m 0 additions, 0 deletions...0n_it_edi/tests/expected_xmls/IT01234567890_FPR01.xml.p7m
- addons/l10n_it_edi/tests/test_ir_mail_server.py 15 additions, 0 deletionsaddons/l10n_it_edi/tests/test_ir_mail_server.py
- addons/l10n_it_edi/tools/__init__.py 4 additions, 0 deletionsaddons/l10n_it_edi/tools/__init__.py
- addons/l10n_it_edi/tools/remove_signature.py 47 additions, 0 deletionsaddons/l10n_it_edi/tools/remove_signature.py
Loading
Please register or sign in to comment