From 0228273ffb0e6bef4d8f1cbbf1b38d82508148cc Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Wed, 19 Dec 2012 16:07:23 +0100 Subject: [PATCH] [FIX] base_action_rule: fix in wrapper method bzr revid: rco@openerp.com-20121219150723-n25qqmczh3oau1cn --- addons/base_action_rule/base_action_rule.py | 4 ++-- 1 file 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 0017a8d0794..ed630248957 100644 --- a/addons/base_action_rule/base_action_rule.py +++ b/addons/base_action_rule/base_action_rule.py @@ -122,7 +122,7 @@ class base_action_rule(osv.osv): Return a wrapper around `old_create` calling both `old_create` and `post_action`, in that order. """ - def wrapper(cr, uid, vals, context=context): + def wrapper(cr, uid, vals, context=None): if context is None: context = {} new_id = old_create(cr, uid, vals, context=context) @@ -145,7 +145,7 @@ class base_action_rule(osv.osv): Return a wrapper around `old_write` calling both `old_write` and `post_action`, in that order. """ - def wrapper(cr, uid, ids, vals, context=context): + def wrapper(cr, uid, ids, vals, context=None): old_records = {} if context is None: context = {}