From 40ec8646e2edb43246c5d45b3c4621a4c40b6013 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Wed, 7 Feb 2024 12:54:10 +0100 Subject: [PATCH] [FIX] mis_builder: use compute_sudo on field source_aml_model_id to prevent errors due to missing permissions. The field source_aml_model_id refers to the ir.model, which is a technical in nature, and users should not have naturally permission to read them directly. --- mis_builder/models/mis_report_instance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mis_builder/models/mis_report_instance.py b/mis_builder/models/mis_report_instance.py index a53d4ef37..0b492574c 100644 --- a/mis_builder/models/mis_report_instance.py +++ b/mis_builder/models/mis_report_instance.py @@ -256,6 +256,7 @@ def _compute_dates(self): ("field_id.model_id.model", "!=", "account.move.line"), ], compute="_compute_source_aml_model_id", + compute_sudo=True, store=True, readonly=False, help="A 'move line like' model, ie having at least debit, credit, "