Fix wrong usage of Eval
(transplanted from e5f9f8e1d8a2454ea77987969929d7123c8e7998)
This commit is contained in:
1 parent
0b2024c702
commit
3e9e50504d
1 file changed
+2
-2
+2
-2
@@ -290,8 +290,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