From 53acb8eb238fed492cb4612b64f691ed4fe7e582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 15 Aug 2011 14:40:27 +0200 Subject: [PATCH] Fix wrong usage of Eval (transplanted from e5f9f8e1d8a2454ea77987969929d7123c8e7998) --- opportunity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):