Fix typo in on_change_party, it should use the instance instead of id
issue2822
This commit is contained in:
1 parent
15d3ba7fb2
commit
26e2f86828
1 file changed
+1
-1
+1
-1
@@ -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 + '" '
|
||||
|
||||
Reference in new issue
Block a user