Do not force same type for children of root account

issue11272
review390111003
This commit is contained in:
Cédric Krier committed 2022-03-06 13:40:42 +01:00
1 parent f87d234aba
commit 3065d15f8c
1 file changed
+2 -2
+2 -2
View File
@@ -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):