Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
1767 Näkymät

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")
 

Avatar
Hylkää
Paras vastaus

Seems that you have a problem with a customized module called "simplify_access_management". I've looked for this one in the official distro and it is not present. Could you try to uninstall it, and try to run the fetchmail again?

Check as well, if your last message UID is raising. If so, go back again some Ids, (for example if it is 1210 move the last message uid to 1203)

Another tip: check if PAQ_RECEP_R76382847-6_T33F25320270.xml content has the tag "" inside it.

Avatar
Hylkää
Tekijä

Hi Daniel!

- "Could you try to uninstall it, and try to run the fetchmail again?" --> yeahh that's what I'm currently doing, so as soon as I'm getting any news I'm posting feedback here.

- "(...) go back again some Ids" --> This is how I've temporarily been treating this, since the cron Fetchmail isn't working properly.

- 'content has the tag " " '--> I'm sorry, but is it just me or is there supposed to be a tag's name inside these double quotes?

Thanks Daniel!

I mean the tag "EnvioDTE". since I embedded it between lt; and gt; this chat interpreted it as markup

Tekijä Paras vastaus

Hi Daniel!


After checking all these theories, I've come to the conclusion that the root cause is the app "simplify_access_management".


Thanks for everything!


Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
kesäk. 25
1916
3
heinäk. 25
3513
1
toukok. 25
1632
1
toukok. 25
1883
4
toukok. 25
3002