From 26e2f86828239d644ea0c874a44430b3a8b48e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 10 Oct 2012 16:46:01 +0200 Subject: [PATCH] Fix typo in on_change_party, it should use the instance instead of id issue2822 --- purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index 7671c11363..b7278be449 100644 --- a/purchase.py +++ b/purchase.py @@ -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 + '" '