The incoming email server (Gmail) cannot properly process XML files attached to emails, resulting in a "RuntimeError: object unbound". This means invoices are not available in the Accounting module eventhough the incoming email server is properly setup following Odoo Docs and the
scheduled action "Mail: Fetchmail Service" is executed.
Log Sample:
- odoo.addons.l10n_cl_edi.models.fetchmail_server: Processing attachment PAQ_RECEP_R76382847-6_T33F25320270.xml
- odoo.addons.l10n_cl_edi.models.fetchmail_server: object unbound
- odoo.addons.l10n_cl_edi.models.fetchmail_server: Failed to process mail from imap server DTE incoming.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/l10n_cl_edi/models/fetchmail_server.py", line 264, in _create_invoice_from_attachment
invoice_form, msgs = self._get_invoice_form(
File "/usr/lib/python3/dist-packages/odoo/addons/l10n_cl_edi/models/fetchmail_server.py", line 320, in _get_invoice_form
with self.env.cr.savepoint(), Form(self.env['account.move'].with_context(
File "/usr/lib/python3/dist-packages/odoo/tests/common.py", line 1939, in __init__
fvg = recordp.fields_view_get(view_id, 'form')
File "/usr/lib/python3/dist-packages/odoo/customkvz/simplify_access_management/models/models.py", line 46, in fields_view_get
cids = request.httprequest.cookies.get('cids') and request.httprequest.cookies.get('cids').split(',')[0] or request.env.company.id
File "/usr/lib/python3/dist-packages/werkzeug/local.py", line 347, in __getattr__
return getattr(self._get_current_object(), name)
File "/usr/lib/python3/dist-packages/werkzeug/local.py", line 306, in _get_current_object
return self.__local()
File "/usr/lib/python3/dist-packages/werkzeug/local.py", line 136, in _lookup
raise RuntimeError("object unbound")