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 generate odt report from wizard

By
richa soni
on 6/3/13, 12:40 PM 1,141 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)

1

Francesco OpenCode

--Francesco OpenCode--
3608
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 6/3/13, 4:25 PM

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,
    }

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

Elmasry
on 6/5/13, 9:16 AM

Have you defined you aeroo report, yet?

Francesco OpenCode
on 6/5/13, 11:34 AM

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

Elmasry
on 6/5/13, 12:53 PM

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.

Francesco OpenCode
on 6/5/13, 4:00 PM

Thanks man

Elmasry
on 6/6/13, 5:36 AM

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

Elmasry
on 6/6/13, 8:17 AM

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

Francesco OpenCode
on 6/6/13, 12:44 PM

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

0 follower(s)

Stats

Asked: 6/3/13, 12:40 PM
Seen: 1141 times
Last updated: 3/16/15, 8:10 AM