Skip to content
Snippets Groups Projects
Commit ce05f3b2 authored by hpr-odoo's avatar hpr-odoo Committed by Martin Trigaux
Browse files

[FIX] base: iterate on each report

If tries to compute the report_rml value on multiple reports at the same time

Closes #21116 
parent 65bad81b
Branches
Tags
No related merge requests found
......@@ -126,7 +126,7 @@ class IrActionsReportXml(models.Model):
def _compute_report_sxw(self):
for report in self:
if report.report_rml:
self.report_sxw = report.report_rml.replace('.rml', '.sxw')
report.report_sxw = report.report_rml.replace('.rml', '.sxw')
def _report_content(self, name):
data = self[name + '_content_data']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment