[FIX]point of sale: when creating account_move_line, was passing a false parameter instead of a correct account id

bzr revid: csn@openerp.com-20130306155548-pdeli8m5ao3126aw
This commit is contained in:
Cedric Snauwaert 2013-03-06 16:55:48 +01:00
parent d383666364
commit 7577488134
1 changed files with 1 additions and 1 deletions

View File

@ -1053,7 +1053,7 @@ class pos_order(osv.osv):
'name': _('Tax') + ' ' + tax.name,
'quantity': line.qty,
'product_id': line.product_id.id,
'account_id': key[account_pos],
'account_id': key[account_pos] or income_account,
'credit': ((tax_amount>0) and tax_amount) or 0.0,
'debit': ((tax_amount<0) and -tax_amount) or 0.0,
'tax_code_id': key[tax_code_pos],