From 8ec819418b1b302f4f681b42945fe088be72616d Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 21 Mar 2017 11:09:38 +0100 Subject: [PATCH] [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 --- addons/hr_expense/models/hr_expense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_expense/models/hr_expense.py b/addons/hr_expense/models/hr_expense.py index 9e08e1ea7aa..61954c1dd78 100644 --- a/addons/hr_expense/models/hr_expense.py +++ b/addons/hr_expense/models/hr_expense.py @@ -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',