odoo 10
Calling a report, I have the following error message:
Traceback (most recent call last): File "/home/odooadmin/OCB/addons/report/controllers/main.py", line 100, in report_download response = self.report_routes(reportname, converter='pdf', **dict(data)) File "/home/odooadmin/OCB/odoo/http.py", line 507, in response_wrap response = f(*args, **kw) File "/home/odooadmin/OCB/addons/report/controllers/main.py", line 45, in report_routes pdf = report_obj.with_context(context).get_pdf(docids, reportname, data=data) File "/home/odooadmin/OCB/addons/report/models/report.py", line 195, in get_pdf save_in_attachment = self._check_attachment_use(docids, report) File "/home/odooadmin/OCB/addons/report/models/report.py", line 320, in _check_attachment_use for record_id in docids: TypeError: 'NoneType' object is not iterable
Report definition is the following:
<odoo>
<data>
<report
id="report_contract_receipt" string="Contract Receipt"
model="print.contract.wizard"
report_type="qweb-pdf"
name="logicos.report_contract_receipt_view"
attachment_use="False"
file="logicos.contract_receipt"/>
</data>
</odoo>
I don't understand if the problem is in report definition or in report view.
Please help me to understand where to investigate.
Thanks