Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to create XLS report in openerp 7 and 8 Version, It's working like openerp 6th version

By
gpkarthick
on 11/21/14, 7:03 AM 1,454 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,

 

0
sengottuvel
On 10/17/15, 6:10 AM

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

0
Yogesh
On 4/8/15, 8:29 PM

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)

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/21/14, 7:03 AM
Seen: 1454 times
Last updated: 10/17/15, 6:10 AM