[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:
parent
111aedf272
commit
e6d869b493
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue