changeset 6103a0781f36 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=6103a0781f36
description:
Do not force same type for children of root account
issue11272
review390111003
diffstat:
account.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 75866feec266 -r 6103a0781f36 account.py
--- a/account.py Mon Feb 21 00:57:41 2022 +0100
+++ b/account.py Sun Mar 06 13:40:42 2022 +0100
@@ -562,10 +562,10 @@
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):