From eb3dccd35a7a73a6b7c969e5db59e52f069f7acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 26 Nov 2008 12:48:11 +0100 Subject: [PATCH] Use payment term of party instead of supplier payment term --- sale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sale.py b/sale.py index 4b9a2afd36..5db64c4b08 100644 --- a/sale.py +++ b/sale.py @@ -211,8 +211,8 @@ class Sale(OSV): party.id, type='invoice', context=context) res['packing_address'] = party_obj.address_get(cursor, user, party.id, type='delivery', context=context) - if party.supplier_payment_term: - res['payment_term'] = party.supplier_payment_term.id + if party.payment_term: + res['payment_term'] = party.payment_term.id if res['invoice_address']: res['invoice_address'] = address_obj.name_get(cursor, user,