Fix typo in on_change_party, it should use the instance instead of id

issue2822
This commit is contained in:
Cédric Krier committed 2012-10-10 16:46:01 +02:00
1 parent 15d3ba7fb2
commit 26e2f86828
1 file changed
+1 -1
+1 -1
View File
@@ -296,7 +296,7 @@ class Purchase(Workflow, ModelSQL, ModelView):
if self.party:
invoice_address = self.party.address_get(type='invoice')
if self.party.supplier_payment_term:
payment_term = self.party.supplier_payment_term.id
payment_term = self.party.supplier_payment_term
subquery = cursor.limit_clause('SELECT currency '
'FROM "' + self._table + '" '