Use correct variable name
(transplanted from 61aca15d299863c9d17127345cc35bebeec3b3ac)
This commit is contained in:
1 parent
4899bcf88d
commit
d33af4e1e9
1 file changed
+2
-2
+2
-2
@@ -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']:
|
||||
|
||||
Reference in new issue
Block a user