From d33af4e1e94cc9d7fd9441ea2ac8c6912e343221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 28 Oct 2011 11:03:36 +0200 Subject: [PATCH] Use correct variable name (transplanted from 61aca15d299863c9d17127345cc35bebeec3b3ac) --- opportunity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opportunity.py b/opportunity.py index 99895ce800..525e50b985 100644 --- a/opportunity.py +++ b/opportunity.py @@ -172,8 +172,8 @@ class SaleOpportunity(ModelWorkflow, ModelSQL, ModelView): res = { 'payment_term': False, } - if vals.get('party'): - party = party_obj.browse(vals['party']) + if values.get('party'): + party = party_obj.browse(values['party']) if party.payment_term: res['payment_term'] = party.payment_term.id if not res['payment_term']: