Eval company or -1 in context m2o fields #163427

This commit is contained in:
Raimon Esteve 2023-11-16 09:56:55 +01:00
parent 5ee1c812ee
commit 1ad97e1f02

View file

@ -92,7 +92,7 @@ class Activity(Workflow, ModelSQL, ModelView):
location = fields.Char('Location')
party = fields.Many2One('party.party', "Party",
context={
'company': Eval('company'),
'company': Eval('company', -1),
},
depends=['company'])
summary = fields.Function(fields.Char('Summary'), 'get_summary')