Eval company or -1 in context m2o fields #163427
This commit is contained in:
parent
9b2b064765
commit
16f9c77f33
|
@ -105,7 +105,7 @@ class ProductionTemplate(ModelSQL, ModelView):
|
|||
template = fields.Many2One('product.template', "Template", required=True,
|
||||
ondelete="CASCADE",
|
||||
context={
|
||||
'company': Eval('company'),
|
||||
'company': Eval('company', -1),
|
||||
},
|
||||
depends=['company'])
|
||||
company = fields.Many2One('company.company', "Company", required=True)
|
||||
|
|
Loading…
Reference in New Issue