Set domain_get mode correctly

review385001
This commit is contained in:
Nicolas Évrard committed 2012-09-21 15:26:35 +02:00
1 parent 28ce541b24
commit a47ecf117c
1 file changed
+1 -1
+1 -1
View File
@@ -158,7 +158,7 @@ class Rule(ModelSQL, ModelView):
if not Transaction().context.get('user'):
return '', []
with Transaction().set_user(Transaction().context['user']):
return self.domain_get(model_name)
return self.domain_get(model_name, mode=mode)
pool = Pool()
rule_group_obj = pool.get('ir.rule.group')