Hi,
I use Odoo 10 and Odoo 10 Enterprise
I have a custom report to generate in excel format.
I have the report in pdf using a wizard.
Now I want it to be in excel.
How can I do that?
I tried report_xlsx, but I can't find documentation for using it with a wizard.
the example in the documentation for partners works ok:
class PartnerXlsx(ReportXlsx):
def generate_xlsx_report(self, workbook, data, partners):
_logger.info('generate_xlsx_report ')
for obj in partners:
report_name = obj.name
# One sheet by partner
sheet = workbook.add_worksheet(report_name[:31])
bold = workbook.add_format({'bold': True})
sheet.write(0, 0, obj.name, bold)
PartnerXlsx('report.res.partner.xlsx', 'res.partner')
So how to do it with a wizard?
Thanks!