Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 13 |
Technical Name |
ivik_zapier_fix |
License | LGPL-3 |
Versions | 17.0 18.0 |
Avoid errors when using Odoo integration in Zapier
This module fixes the compatibility issue between Zapier and Odoo 17 / Odoo 18 that causes the following error:
Odoo API Error (BaseModel.search() takes from 2 to 5 positional arguments but 6 were given): Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/controllers/rpc.py", line 138, in xmlrpc_1 response = self._xmlrpc(service) File "/usr/lib/python3/dist-packages/odoo/addons/base/controllers/rpc.py", line 127, in _xmlrpc result = dispatch_rpc(service, method, params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 391, in dispatch_rpc return dispatch(method, params) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 35, in dispatch res = execute(db, uid, *params[3:]) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 65, in execute res = execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 50, in execute_cr result = retrying(partial(odoo.api.call_kw, recs, method, args, kw), env) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying result = func() File "/usr/lib/python3/dist-packages/odoo/api.py", line 464, in call_kw result = _call_kw_model(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 435, in _call_kw_model 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