summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFalcoBolger <vta@openerp.com>2015-12-07 10:36:25 +0100
committerRaphael Collet <rco@openerp.com>2015-12-07 12:26:40 +0100
commit4ba2e91aa41ce59fcc2786ab99e9fbc7fe273bf8 (patch)
tree49769fcf61f5688a98880ec6691cc32f240ee6fd /addons
parent85e33c8e1d4b0d718450d959f8c49bf8c1e50648 (diff)
[FIX] base_action_rule: pass kwargs when calling create/write's origin method
Diffstat (limited to 'addons')
-rw-r--r--addons/base_action_rule/base_action_rule.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base_action_rule/base_action_rule.py b/addons/base_action_rule/base_action_rule.py
index e33f34bcb8a..0c9ba93cf69 100644
--- a/addons/base_action_rule/base_action_rule.py
+++ b/addons/base_action_rule/base_action_rule.py
@@ -181,7 +181,7 @@ class base_action_rule(osv.osv):
def create(self, cr, uid, vals, context=None, **kwargs):
# avoid loops or cascading actions
if context and context.get('action'):
- return create.origin(self, cr, uid, vals, context=context)
+ return create.origin(self, cr, uid, vals, context=context, **kwargs)
# call original method with a modified context
context = dict(context or {}, action=True)
@@ -206,7 +206,7 @@ class base_action_rule(osv.osv):
def write(self, cr, uid, ids, vals, context=None, **kwargs):
# avoid loops or cascading actions
if context and context.get('action'):
- return write.origin(self, cr, uid, ids, vals, context=context)
+ return write.origin(self, cr, uid, ids, vals, context=context, **kwargs)
# modify context
context = dict(context or {}, action=True)