changeset d46a5a58a28b in modules/account:5.0
details: https://hg.tryton.org/modules/account?cmd=changeset&node=d46a5a58a28b
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 (18 lines):
diff -r b0e17e385627 -r d46a5a58a28b account.py
--- a/account.py Thu Aug 04 00:06:47 2022 +0200
+++ b/account.py Sat Aug 06 10:44:34 2022 +0200
@@ -142,12 +142,12 @@
parent = fields.Many2One('account.account.type', 'Parent',
ondelete="RESTRICT", states=_states,
domain=[
- ('company', '=', Eval('company')),
+ ('company', '=', Eval('company', -1)),
],
depends=['company'])
childs = fields.One2Many('account.account.type', 'parent', 'Children',
domain=[
- ('company', '=', Eval('company')),
+ ('company', '=', Eval('company', -1)),
],
depends=['company'])
currency_digits = fields.Function(fields.Integer('Currency Digits'),