changeset b9695b133d0d in modules/account:6.2
details: https://hg.tryton.org/modules/account?cmd=changeset&node=b9695b133d0d
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 9baae5dc923a -r b9695b133d0d account.py
--- a/account.py        Thu Aug 04 00:05:41 2022 +0200
+++ b/account.py        Sat Aug 06 10:44:34 2022 +0200
@@ -243,12 +243,12 @@
                 & ~Eval('template_override', False)),
             },
         domain=[
-            ('company', '=', Eval('company')),
+            ('company', '=', Eval('company', -1)),
             ],
         depends=['company', 'statement'])
     childs = fields.One2Many('account.account.type', 'parent', 'Children',
         domain=[
-            ('company', '=', Eval('company')),
+            ('company', '=', Eval('company', -1)),
         ],
         depends=['company'])
     currency = fields.Function(fields.Many2One(

Reply via email to