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, " diff --git a/mis_builder/readme/newsfragments/596.bugfix b/mis_builder/readme/newsfragments/596.bugfix new file mode 100644 index 000000000..5d7bd18e1 --- /dev/null +++ b/mis_builder/readme/newsfragments/596.bugfix @@ -0,0 +1,2 @@ +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. +With this fix, every time that the field is read, it will be done using compute_sudo, which means that the user permissions are not considered. \ No newline at end of file