domain must be encoded in PYSON

This commit is contained in:
Cédric Krier committed 2010-06-16 07:49:22 +02:00
1 parent 8e392a39b1
commit e113afdf75
1 file changed
+3 -2
+3 -2
View File
@@ -299,8 +299,9 @@ class Account(ModelSQL, ModelView):
res[name]['required'] = account.mandatory
res[name]['string'] = account.name
res[name]['relation'] = self._name
res[name]['domain'] = [('root', '=', account.id),
('type', '=', 'normal')]
res[name]['domain'] = PYSONEncoder().encode([
('root', '=', account.id),
('type', '=', 'normal')])
return res
Account()