Skip to Content
Menu

Zapier Fix integration with Odoo

by
Odoo

116.12

v 19.0 Third Party 2
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 16
Technical Name ivik_zapier_fix
LicenseLGPL-3
Versions 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 16
Technical Name ivik_zapier_fix
LicenseLGPL-3
Versions 17.0 18.0 19.0

Avoid errors when using Odoo integration in Zapier

This module fixes the compatibility issue between Zapier and Odoo 19 that causes the following error:

Exception during request handling.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2785, in __call__
  response = request._serve_db()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2268, in _serve_db
  raise self._update_served_exception(exc)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2266, in _serve_db
  return service_model.retrying(serve_func, env=self.env)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 184, in retrying
  result = func()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2313, in _serve_ir_http
  response = self.dispatcher.dispatch(rule.endpoint, args)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2528, in dispatch
  result = self.request.registry['ir.http']._dispatch(endpoint)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 357, in _dispatch
  result = endpoint(**request.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 788, in route_wrapper
  result = endpoint(self, *args, **params_ok)
File "/usr/lib/python3/dist-packages/odoo/addons/rpc/controllers/jsonrpc.py", line 16, in jsonrpc
  return dispatch_rpc(service, method, args)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 439, in dispatch_rpc
  return dispatch(method, params)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 129, in dispatch
  res = execute_cr(cr, uid, model, method_, args, kw)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 146, in execute_cr
  result = retrying(partial(call_kw, recs, method, args, kw), env)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 184, in retrying
  result = func()
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 93, in call_kw
  result = method(recs, *args, **kwargs)
TypeError: BaseModel.search() takes from 2 to 5 positional arguments but 6 were given

When using Zapier integration, you get the error:

TypeError: BaseModel.search() takes from 2 to 5 positional arguments but 6 were given.

This happens because of changes in the API method BaseModel.search(). This module automatically patches this behavior, ensuring that Zapier and Odoo can communicate without errors.

With this module installed, your Zapier workflows with Odoo will run smoothly and without interruptions.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.