Skip to Content
Menu
This question has been flagged
3 Replies
2001 Views

Hello, I have configured my outgoing and incoming mail servers correctly. And I am getting the below. Kindly assist.

RPC_ERROR


Odoo Server Error


Traceback (most recent call last):


  File "/opt/odoo/odoo/odoo/http py", line 1722, in _serve_db


    return service_model.retrying(self._serve_ir_http, self.env)


           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/odoo/service/model. py", line 133, in retrying


    result = func()


             ^^^^^^


  File "/opt/odoo/odoo/odoo/http py", line 1749, in _serve_ir_http


    response = self.dispatcher.dispatch(rule.endpoint, args)


               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/odoo/http py", line 1953, in dispatch


    result = self.request.registry['ir.http']._dispatch(endpoint)


             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/odoo/addons/base/models/ir_http py", line 222, in _dispatch


    result = endpoint(**request.params)


             ^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/odoo/http. py", line 722, in route_wrapper


    result = endpoint(self, *args, **params_ok)


             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/addons/web/controllers/dataset py", line 28, in call_button


    action = self._call_kw(model, method, args, kwargs)


             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/addons/web/controllers/dataset py", line 20, in _call_kw


    return call_kw(request.env[model], method, args, kwargs)


           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/odoo/api. py", line 466, in call_kw


    result = _call_kw_multi(method, model, args, kwargs)


             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/odoo/api py", line 453, in _call_kw_multi


    result = method(recs, *args, **kwargs)


             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


  File "/opt/odoo/odoo/addons/mail/models/mail_mail py", line 551, in send


    self.browse(batch_ids)._send(


TypeError: MailMail._send() got an unexpected keyword argument 'alias_domain_id'






Avatar
Discard
Best Answer

I had the same problem, it was caused by the module "odooAi Common Util and Tools" (app_common) 
Their mail_mail inherit has a bad _send method. Perhaps too old ?

Avatar
Discard
Best Answer

I encountered the same issue in Odoo V17, because the custom module I was using had inherited mail.mail, and some changes were made to method _send where the aliasdomain_id parameter was missing. So we added this and the issue has been resolved.


def _send(self, autocommit=False, raise_exception=False, smtp_session=None, alias_domain_id=False):


Avatar
Discard
Best Answer

Any news on this one?

Avatar
Discard