changeset b93e0a86f433 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=b93e0a86f433
description:
Ensure company domain has the right type
issue11611
review417591003
diffstat:
account.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 13b2b39ecd83 -r b93e0a86f433 account.py
--- a/account.py Mon Jul 18 00:04:04 2022 +0200
+++ b/account.py Sat Aug 06 10:44:34 2022 +0200
@@ -235,7 +235,7 @@
& ~Eval('template_override', False)),
},
domain=[
- ('company', '=', Eval('company')),
+ ('company', '=', Eval('company', -1)),
['OR',
If(Eval('statement') == 'off-balance',
('statement', '=', 'off-balance'),
@@ -248,7 +248,7 @@
])
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')