[FIX] Remove last | in source document when grouping
bzr revid: jco@openerp.com-20130320144336-tmtw1qje4eusqghr
This commit is contained in:
parent
9913357fa2
commit
773a1fc51f
|
@ -532,6 +532,8 @@ class sale_order(osv.osv):
|
|||
invoice_ref += o.name + '|'
|
||||
self.write(cr, uid, [o.id], {'state': 'progress'})
|
||||
cr.execute('insert into sale_order_invoice_rel (order_id,invoice_id) values (%s,%s)', (o.id, res))
|
||||
if len(invoice_ref) >= 1:
|
||||
invoice_ref = invoice_ref[:-1]
|
||||
invoice.write(cr, uid, [res], {'origin': invoice_ref, 'name': invoice_ref})
|
||||
else:
|
||||
for order, il in val:
|
||||
|
|
Loading…
Reference in New Issue