From 7e21edf89b753f15f7fb50faf5db793b2e272aee Mon Sep 17 00:00:00 2001 From: "John Laterre (jol)" Date: Wed, 8 Mar 2023 16:41:26 +0000 Subject: [PATCH] [FIX] account: fix ir.rule on tax repartition lines Before this commit, you could search `account.tax.repartition.line` and get records from all the existing companies, which is not supposed to happen. It should only return records of the `active_company_ids`. That was because there were no `ir.rule` preventing that. This fixes the issue. closes odoo/odoo#115973 X-original-commit: 3e850ba9e27ac487d1f300f3ffc4ed2578e76f2f Related: odoo/enterprise#38472 Signed-off-by: Olivier Colson (oco) Signed-off-by: John Laterre (jol) --- addons/account/security/account_security.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml index 29dbdb49f09..35dcdb1fced 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -151,6 +151,12 @@ [('company_id', 'in', company_ids)] + + Tax Repartition multi-company + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + Invoice Analysis multi-company