bzr revid: fp@tinyerp.com-76633cac8ff236dd21695101c6e4a8e10057602c
This commit is contained in:
Fabien Pinckaers 2008-02-08 16:09:03 +00:00
parent ffa98ae4e7
commit 6215af103f
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ class ir_rule(osv.osv):
res = {}
for rule in self.browse(cr, uid, ids, context):
if rule.domain_force:
res[rule.id] = rule.domain_force
res[rule.id] = eval(rule.domain_force, {'user': self.pool.get('res.users').browse(cr, 1, uid),
'time':time})
else:
if rule.operator in ('in', 'child_of'):
dom = eval("[('%s', '%s', [%s])]" % (rule.field_id.name, rule.operator,