[FIX] base_action_rule: typo when committing base action rule
authorThibault Delavallée <tde@openerp.com>
Wed, 1 Oct 2014 10:00:02 +0000 (12:00 +0200)
committerThibault Delavallée <tde@openerp.com>
Wed, 1 Oct 2014 10:46:30 +0000 (12:46 +0200)
update, evaluate the action filter_domain, not its non-existing context.

addons/base_action_rule/base_action_rule.py

index 1afecfa..ef01134 100644 (file)
@@ -317,8 +317,8 @@ class base_action_rule(osv.osv):
             model = self.pool[action.model_id.model]
             domain = []
             ctx = dict(context)
-            if action.filter_domain:
-                domain = eval(action.context)
+            if action.filter_domain is not False:
+                domain = eval(action.filter_domain)
             elif action.filter_id:
                 domain = eval(action.filter_id.domain)
                 ctx.update(eval(action.filter_id.context))