Fix wrong usage of Eval
(transplanted from e5f9f8e1d8a2454ea77987969929d7123c8e7998)
This commit is contained in:
1 parent
95c7d7084a
commit
53acb8eb23
1 file changed
+2
-2
+2
-2
@@ -318,8 +318,8 @@ class SaleOpportunityLine(ModelSQL, ModelView):
|
||||
on_change_with=['unit']), 'get_unit_digits')
|
||||
sale_line = fields.Many2One('sale.line', 'Sale Line', readonly=True,
|
||||
states={
|
||||
'invisible': Not(Equal(Eval('_parent_opportunity.state'),
|
||||
'converted')),
|
||||
'invisible': Not(Equal(Get(Eval('_parent_opportunity', {}),
|
||||
'state'), 'converted')),
|
||||
})
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in new issue
Block a user