From b8a00bf9d41b0b54d18aa3aef99e8c49d00d1c02 Mon Sep 17 00:00:00 2001 From: Brice bib Bartoletti Date: Fri, 5 May 2023 14:39:43 +0000 Subject: [PATCH] [IMP] account: add company ir.rule for tax group This commit aims to improve consistency. Context: - functionally: `account.tax.group` is company dependent and thus, it's weird to be able to access to other company tax group when those companies aren't selected. - technically: In accounting apps, devs also expect company dependent field to not be retrieved by the `search` method and not having that ir.rule could cause bugs. X-original-commit: 56f039f82afcf6c262bc5711cd28ae691cdf00e2 Part-of: odoo/odoo#125950 --- 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 c68d17e7780..e20a581c784 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -152,6 +152,12 @@ ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + Tax group multi-company + + [('company_id', 'in', company_ids)] + + Tax multi-company