From ae267389ed2342a9690e85fae9e4aeb57dd18174 Mon Sep 17 00:00:00 2001 From: "Gauthier Wala (gawa)" Date: Fri, 9 Feb 2024 17:06:37 +0000 Subject: [PATCH] [FIX] l10n_pl: access right on l10n_pl_reports_tax_office_id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The model `l10n_pl_tax_office` has a group to be able to access it. The Many2one that refers to it, `l10n_pl_reports_tax_office_id`, does not. Currently, it is not really an issue as the accounting's settings are invisible if you don't have the group, but it creates a warning in a test and is more robust Linked to runbot error 24602, 24721 closes odoo/odoo#154294 X-original-commit: dba837afe72c9e8b3e3f8e9615ddb923227d3af0 Signed-off-by: William André (wan) Signed-off-by: Wala Gauthier (gawa) --- addons/l10n_pl/models/res_company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_pl/models/res_company.py b/addons/l10n_pl/models/res_company.py index d062e8ce50d..d4282f10d07 100644 --- a/addons/l10n_pl/models/res_company.py +++ b/addons/l10n_pl/models/res_company.py @@ -4,4 +4,4 @@ from odoo import fields, models class Company(models.Model): _inherit = 'res.company' - l10n_pl_reports_tax_office_id = fields.Many2one('l10n_pl.l10n_pl_tax_office', string='Tax Office') + l10n_pl_reports_tax_office_id = fields.Many2one('l10n_pl.l10n_pl_tax_office', string='Tax Office', groups="account.group_account_user")