Revert "Eval company or -1 in context m2o fields #163427"

This reverts commit df629fb514.
This commit is contained in:
Raimon Esteve 2023-11-16 07:41:07 +01:00
parent 8a573615a8
commit 21a2e05859
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class LocationCompany(AnalyticMixin, ModelSQL, ModelView):
def __setup__(cls):
super(LocationCompany, cls).__setup__()
cls.analytic_accounts.domain = [
('company', '=', If(~Eval('company', -1),
('company', '=', If(~Eval('company'),
Eval('context', {}).get('company', -1),
Eval('company', -1))),
]