diff --git a/opportunity.py b/opportunity.py index 9ef7e48b01..d8fab09e45 100644 --- a/opportunity.py +++ b/opportunity.py @@ -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):