Eval company or -1 in context m2o fields #163427

This commit is contained in:
Raimon Esteve 2023-11-16 10:22:42 +01:00
parent dfb5e36f51
commit 8624f33c39
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class Work(AnalyticMixin, metaclass=PoolMeta):
def __setup__(cls):
super().__setup__()
cls.analytic_accounts.domain = [
('company', '=', If(~Eval('company'),
('company', '=', If(~Eval('company', -1),
Eval('context', {}).get('company', -1),
Eval('company', -1))),
]