[FIX] stock_account: inconsistency in invoice line origin

The origin of the invoice lines was the same as the invoice (both using variable 'origin').
This commit is contained in:
Martin Trigaux 2015-02-03 10:44:41 +01:00
parent 111aedf272
commit e6d869b493
1 changed files with 2 additions and 2 deletions

View File

@ -293,8 +293,8 @@ class stock_picking(osv.osv):
else:
invoice = invoice_obj.browse(cr, uid, invoices[key], context=context)
if not invoice.origin or invoice_vals['origin'] not in invoice.origin.split(', '):
origin = filter(None, [invoice.origin, invoice_vals['origin']])
invoice.write({'origin': ', '.join(origin)})
invoice_origin = filter(None, [invoice.origin, invoice_vals['origin']])
invoice.write({'origin': ', '.join(invoice_origin)})
invoice_line_vals = move_obj._get_invoice_line_vals(cr, uid, move, partner, inv_type, context=context)
invoice_line_vals['invoice_id'] = invoices[key]