Use payment term of party instead of supplier payment term

This commit is contained in:
Cédric Krier committed 2008-11-26 12:48:11 +01:00
1 parent 3c845b6f4e
commit eb3dccd35a
1 file changed
+2 -2
+2 -2
View File
@@ -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,