[FIX] point_of_sale: do not group move lines with different analytic account
When generating account.move.line from pos.order, orders with different analytic account should not be groupped in generated lines (possible if inherit _prepare_analytic_account). Add the analytic_account_id in the key to avoid this grouping. Fixes #4602
This commit is contained in:
parent
8f2f541d5e
commit
a9907aac8a
|
@ -1083,7 +1083,7 @@ class pos_order(osv.osv):
|
|||
})
|
||||
|
||||
if data_type == 'product':
|
||||
key = ('product', values['partner_id'], values['product_id'], values['debit'] > 0)
|
||||
key = ('product', values['partner_id'], values['product_id'], values['analytic_account_id'], values['debit'] > 0)
|
||||
elif data_type == 'tax':
|
||||
key = ('tax', values['partner_id'], values['tax_code_id'], values['debit'] > 0)
|
||||
elif data_type == 'counter_part':
|
||||
|
|
Loading…
Reference in New Issue