Hey guys, i have a problem, when i try to fetch an incoming mail it doesnt work, but last days did, and the great thing is that the "user inbox" works but the generals like "support@..." doesnt, i looked up and didnt found any help, the unique thing diferent is that the ussers in some kinda way have an account linked to that incoming mail box, but its not at all a direct link, when i set the general accounts unhabilited it does work the users ones, and they idk when they function great cause when i did some tests at one point all the mails came by but just 1 any clues? I just have seen that some of it like 2h ago did a search idk how xd but well,
UPDATE: if i comment a line in the fetchmail.py
"server.write({'date': fields.Datetime.now()})" it works sometimes like it still crashes some times but some no, i dont get it JAJAJAJ
thanks a lot
The error that shows up when i use the button to execute the fetchmail
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/odoo/odoo-server/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 368, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 357, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 921, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 546, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1328, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1316, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 464, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 451, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/odoo/odoo-server/addons/fetchmail/models/fetchmail.py", line 236, in fetch_mail
server.write({'date': fields.Datetime.now()})
File "/odoo/odoo-server/addons/fetchmail/models/fetchmail.py", line 96, in write
self._update_cron()
File "/odoo/odoo-server/addons/fetchmail/models/fetchmail.py", line 245, in _update_cron
cron = self.env.ref('fetchmail.ir_cron_mail_gateway_action')
File "/odoo/odoo-server/odoo/api.py", line 584, in ref
if record.exists():
File "/odoo/odoo-server/odoo/models.py", line 4902, in exists
self.env.cr.execute(query_str, params)
File "", line 2, in execute
File "/odoo/odoo-server/odoo/sql_db.py", line 90, in check
return f(self, *args, **kwargs)
File "/odoo/odoo-server/odoo/sql_db.py", line 311, in execute
res = self._obj.execute(query, params)
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block