[MERGE] [FIX] sale: use client ref on invoice val instead of name for make invoice wizard, same behaviour as creation of invoice in classic _prepare_invoice of sale.py. Courtsey of Yannick Vaucher (Camptocamp)

bzr revid: mat@openerp.com-20131128113232-aun2h9fbrfxwffqt
This commit is contained in:
Martin Trigaux 2013-11-28 12:32:32 +01:00
commit d4edeaaabe
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class sale_order_line_make_invoice(osv.osv_memory):
else:
pay_term = False
inv = {
'name': order.name,
'name': order.client_order_ref or '',
'origin': order.name,
'type': 'out_invoice',
'reference': "P%dSO%d" % (order.partner_id.id, order.id),