Do not force same type for children of root account
issue11272 review390111003
This commit is contained in:
1 parent
f87d234aba
commit
3065d15f8c
1 file changed
+2
-2
+2
-2
@@ -562,10 +562,10 @@ def AccountMixin(template=False):
|
||||
field.depends.append('parent')
|
||||
|
||||
cls.childs.domain.append(
|
||||
If(Eval(type_),
|
||||
If(Eval(type_) & Eval('parent'),
|
||||
(type_, '=', Eval(type_)),
|
||||
()))
|
||||
cls.childs.depends.append(type_)
|
||||
cls.childs.depends.extend([type_, 'parent'])
|
||||
|
||||
@classmethod
|
||||
def default_closed(cls):
|
||||
|
||||
Reference in new issue
Block a user