changeset 713e10748642 in modules/account:6.4
details: https://hg.tryton.org/modules/account?cmd=changeset&node=713e10748642
description:
Ensure company domain has the right type
issue11611
review417591003
(grafted from b93e0a86f43352b05682f2db7af556f430ba7403)
diffstat:
account.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r fecb10990618 -r 713e10748642 account.py
--- a/account.py Thu Aug 04 00:05:09 2022 +0200
+++ b/account.py Sat Aug 06 10:44:34 2022 +0200
@@ -235,11 +235,11 @@
& ~Eval('template_override', False)),
},
domain=[
- ('company', '=', Eval('company')),
+ ('company', '=', Eval('company', -1)),
])
childs = fields.One2Many('account.account.type', 'parent', 'Children',
domain=[
- ('company', '=', Eval('company')),
+ ('company', '=', Eval('company', -1)),
])
currency = fields.Function(fields.Many2One(
'currency.currency', 'Currency'), 'get_currency')