Skip to Content
Menu
This question has been flagged
2 Replies
4289 Views

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

Name: report_
Type : OLE2 compound document storage (application/x-ole-storage)
Size: 5.6 kB (5,632 bytes)

Is there any solution for this,

 

Avatar
Discard
Best Answer

Hi Yogesh,

Your solution not working on OpenERP 7.0. But it's working on 6.0.

Kindly help how to save excel file with .xls extension on 7.0

Avatar
Discard
Best Answer

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)

Avatar
Discard
Related Posts Replies Views Activity
4
Apr 24
170726
0
Dec 23
606
5
Nov 24
217131
1
Dec 22
1692
2
Nov 22
1679