From 3e9e50504d1af820c73e1f77294fedde1e744cf4 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 f815ad96ee..99895ce800 100644 --- a/opportunity.py +++ b/opportunity.py @@ -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):