[FIX] hr_expense: was crashing if a tax without 'tax_collected_id' field was used at the time of accounting entries creation
bzr revid: qdp-launchpad@openerp.com-20130404164153-0tbni96scijq90fu
This commit is contained in:
parent
11fd8eba26
commit
e7c13b1a3b
|
@ -324,7 +324,7 @@ class hr_expense_expense(osv.osv):
|
|||
'price_unit': tax['price_unit'],
|
||||
'quantity': 1,
|
||||
'price': tax['amount'] * tax['base_sign'] or 0.0,
|
||||
'account_id': tax['account_collected_id'],
|
||||
'account_id': tax['account_collected_id'] or mres['account_id'],
|
||||
'tax_code_id': tax['tax_code_id'],
|
||||
'tax_amount': tax['amount'] * tax['base_sign'],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue