[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:
Alexis de Lattre 2015-01-08 23:16:38 +01:00 committed by Martin Trigaux
parent 8f2f541d5e
commit a9907aac8a
1 changed files with 1 additions and 1 deletions

View File

@ -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':