summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-02-15 14:36:39 +0000
committerRaphael Collet <rco@odoo.com>2019-03-22 16:42:08 +0000
commit1ced3bfca457ac50845637bcd42a8e53bd7f088d (patch)
treeab337f64040089777f509f24dc08fd08de57baeb /addons/web/controllers/main.py
parent579965adc5cf6db67e5dc3b3c6dfd9162b171e90 (diff)
[FIX] *: pass context in kwargs in rpc calls
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 379838fc7d0..98387b74106 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -937,8 +937,8 @@ class DataSet(http.Controller):
return self._call_kw(model, method, args, kwargs)
@http.route('/web/dataset/call_button', type='json', auth="user")
- def call_button(self, model, method, args, domain_id=None, context_id=None):
- action = self._call_kw(model, method, args, {})
+ def call_button(self, model, method, args, kwargs):
+ action = self._call_kw(model, method, args, kwargs)
if isinstance(action, dict) and action.get('type') != '':
return clean_action(action)
return False