From 7a5466a8ec2292f2a8565e41f1f7a10d6cbb154d Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 4 May 2021 21:15:35 +0000 Subject: [PATCH] [FIX] hr_expense: Wrong tax in multi companies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce the bug: - Let's consider two companies C1 and C2 where C1 is the parent of C2 - Let's consider an expense product P with T1 as tax in C1 and T2 as tax in C2 - Let's consider an expense alias A defned for C1 and C2 - Let's consider an employee E in C2 with work email address W - Send from W to A an email with subject [internal reference of P] Test Expense 1000€ Bug: An expense is created in C2 with T1 and T2 as supplier taxes instead of only T2 Inspired from function _compute_tax_id defined in model sale.order and purchase.order opw:2507162 closes odoo/odoo#80250 X-original-commit: a3daaf4d3a22e403ca891a1d396380e118020164 Signed-off-by: Laurent Smet --- 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 75fd782f9cf..591bb030955 100644 --- a/addons/hr_expense/models/hr_expense.py +++ b/addons/hr_expense/models/hr_expense.py @@ -703,7 +703,7 @@ Or send your receipts at