domain must be encoded in PYSON
This commit is contained in:
1 parent
8e392a39b1
commit
e113afdf75
1 file changed
+3
-2
+3
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user