Rename field payment_term to customer_payment_term for consistency.

issue2161
review124001
This commit is contained in:
Albert Cervera i Areny
2012-03-03 19:10:42 +01:00
parent 5533c88ed4
commit 39ef29c345
+2 -2
View File
@@ -274,8 +274,8 @@ class Sale(ModelWorkflow, ModelSQL, ModelView):
type='invoice')
res['shipment_address'] = party_obj.address_get(party.id,
type='delivery')
if party.payment_term:
res['payment_term'] = party.payment_term.id
if party.customer_payment_term:
res['payment_term'] = party.customer_payment_term.id
if res['invoice_address']:
res['invoice_address.rec_name'] = address_obj.browse(