From 4cc85da024eaa821047fb040c857c6f3e2d8aca9 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Fri, 7 Jun 2013 11:24:05 +0200 Subject: [PATCH] [FIX] sale - copy customer ref instead of order name in sale_line_invoice wizard lp bug: https://launchpad.net/bugs/1188528 fixed bzr revid: yannick.vaucher@camptocamp.com-20130607092405-1roxnirhtfcxo0d3 --- addons/sale/wizard/sale_line_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/wizard/sale_line_invoice.py b/addons/sale/wizard/sale_line_invoice.py index e6121b23dd8..d8a7d05a10e 100644 --- a/addons/sale/wizard/sale_line_invoice.py +++ b/addons/sale/wizard/sale_line_invoice.py @@ -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),