diff options
| author | Paolo (pgi) <pgi@odoo.com> | 2021-04-07 13:12:33 +0000 |
|---|---|---|
| committer | Paolo (pgi) <pgi@odoo.com> | 2021-04-15 09:17:16 +0000 |
| commit | 1bf2e8805503d9bbebec58df9933abab3db70bd2 (patch) | |
| tree | e2cf70fece31cb55b186cb463166f96afa51e4bf /addons/l10n_latam_invoice_document | |
| parent | a2d63e8ae5d6bc0e822d12d724b5e3ff5a979cad (diff) | |
[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, nothing happened.
The e-invoice related vendor bill should be automatically created when the xml file is fetched from the PEC mailbox instead.
- There was a traceback when account_move.l10n_it_einvoice_name was searched because it's a non-stored computed field.
- Also, the field name account_move.source_email was used, but it was renamed to invoice_source_email.
- The xml parsing etree.fromstring() was incorrectly used with string arguments instead of bytes.
- The context was mistakenly initialized twice on invoice creation.
Tests have been provided for the email reading methods.
opw-2460485
closes odoo/odoo#69254
Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons/l10n_latam_invoice_document')
0 files changed, 0 insertions, 0 deletions
