This question has been flagged
1 Reply
3963 Views

i've generated the simple odt file using libreoffice but i want to generate odt file from wizard. please guide me. Is it necessary to generate it through sxw. I want only odt file not the pdf.

richa(richas@leosys.in)

Avatar
Discard
Best Answer

This is a code I use in a wizard to generate report from odt file (aeroo report)

datas = {
    'ids': ids,
    'model': 'WIZARD_NAME',
    'form': self.read(cr, uid, ids)[0]
    }
return {
    'type': 'ir.actions.report.xml',
    'report_name': 'REPORT_NAME',
    'datas':datas,
    'context':context,
    }
Avatar
Discard

i'm so so sorry Francesco could u explain more (steps to do that) .. it is so important to me it is the 3rd day i search about that thank you in advance

Have you defined you aeroo report, yet?

i install Aeroo and created a report on employee and can print it ... what i miss is

create a wizard

some fields in this wizard to filtrate the report data

send this data to the report and print it by a "button" in wizard

I don't know how to send the data from wizard to report, sorry. I know only how to return a report from wizard and th code in my answer is all i know about this dubt.

Thanks man

Francesco do you add ur Aeroo report from GUI or add it in code??

sorry but i want to find a easy way to create my reports

i add my reports from setting >> Aeroo Reports >> Reports >> create but can't read it's name

I add all my report by code. If you want an example search in openerp modules some similar code.