Hello, I associated with a button a method that allows the generation of an xlsx file, I would like to return the file just created, as for a normal file, with the Save as...
This is my code, I do not know how to write the return, I need help.
@api.multi def export(self): workbook = xlsxwriter.Workbook('/tmp/test.xlsx') worksheet = workbook.add_worksheet() row = 0 col = 0 for vals in self.carrier_line_ids: worksheet.write(row, 0, vals.reference) ... ... row += 1 workbook.close()