[FIX] base: iterate on each report

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

Closes #21116
This commit is contained in:
hpr-odoo
2018-03-21 11:01:16 +01:00
committed by Martin Trigaux
parent 65bad81b2c
commit ce05f3b2e0
+1 -1
View File
@@ -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']