[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:
parent
d383666364
commit
7577488134
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue