How to create XLS report in openerp 7 and 8 Version, It working like openerp 6th version, but my side it is generated, but the problem is generating unformated type and then i need to convert to to .xls type
Generated file like this
Type : OLE2 compound document storage (application/x-ole-storage)
Size: 5.6 kB (5,632 bytes)
Is there any solution for this,
you can add one more field for file name in your model eg:.
filename = fields.Char('File Name')
and then you can use this field in .xml to set name of file like,(considering 'xls_report' is binary field that will hold your .xls report)
<field name="xls_report" filename="filename"/> .
From now on your reports will be download with the name you set in that field. (you can have name dependent of your record)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/21/14, 7:03 AM|
|Seen: 1447 times|
|Last updated: 10/17/15, 6:10 AM|