[FIX] point_of_sale: set analytic account on pos invoice

The analytic account is set on entry generated from pos.order but it was not for
the invoices generated from the pos orders.
This commit is contained in:
JosDeGraeve 2015-02-19 14:38:45 +01:00 committed by Martin Trigaux
parent a3c0742b77
commit 6f35b0b3fa
1 changed files with 1 additions and 0 deletions

View File

@ -979,6 +979,7 @@ class pos_order(osv.osv):
'invoice_id': inv_id,
'product_id': line.product_id.id,
'quantity': line.qty,
'account_analytic_id': self._prepare_analytic_account(cr, uid, line, context=context),
}
inv_name = product_obj.name_get(cr, uid, [line.product_id.id], context=context)[0][1]
inv_line.update(inv_line_ref.product_id_change(cr, uid, [],