error creating pdf in qweb.
Good evening, I have an error message when opening a newly created file.
"pdf could not be opened because it is not a supported file type or it may be corrupted."
It seems to me that the error is when passing the variable "records", but I don't know how to solve it, I would appreciate your help.
What could be the problem?? (odoo11)
records=[{price_total: 1044.3, number: F001-00000001, product_id: 32}, {price_total: 1044.3, number: F001-00000004, product_id: 32}]
def imprimir(self):
self.ensure_one()
records= self._sql_get_line_for_report(self.fecha_inicio,self.fecha_fin)
return self.env.ref('report_comprobantes_efact.linea_report_formato_pdf').report_action(self,data={"records":records})