[FIX] hr_expense: tax on expense
- Create an expense with a tax - Validate and post entries 3 AML are created, one on the expense account, one on the account payable, one for the tax. However, the AML of the expense account is not linked to the tax, and therefore does not appear in the reports. opw-715488
This commit is contained in:
@@ -289,7 +289,7 @@ class HrExpense(models.Model):
|
||||
# Calculate tax lines and adjust base line
|
||||
taxes = expense.tax_ids.compute_all(expense.unit_amount, expense.currency_id, expense.quantity, expense.product_id)
|
||||
account_move[-1]['price'] = taxes['total_excluded']
|
||||
account_move[-1]['tax_ids'] = expense.tax_ids.ids
|
||||
account_move[-1]['tax_ids'] = [(6, 0, expense.tax_ids.ids)]
|
||||
for tax in taxes['taxes']:
|
||||
account_move.append({
|
||||
'type': 'tax',
|
||||
|
||||
Reference in New Issue
Block a user