module use

module use

Postby bb39700 » Sun Mar 14, 2010 7:14 pm

In documentation, you show how to put button inside openerp.

But what is the good method to do this in my module :
Same parser as in other report in my .py ?
Specific method to add report calculated field and pass it to report ?
xml specific tag ?
bb39700
 
Posts: 20
Joined: Sun Mar 14, 2010 6:04 pm

Re: module use

Postby sraps » Mon Mar 15, 2010 12:17 pm

Hi,
there are basically two options of adding custom parser for your report:
1. you can code/place parser directly on Report XML form. So there is no need to create module for adding just one custom report.
2. you can add report and it's parser by creating module for that.

The problem is that we are not ready with manual for that part. I will look at our existing reports, and try to pick some examples. And place here, so you can experiment with them.

P.S. please examine the extra functions library included with reporting engine, there are bunch of handy functions (http://kndati.lv/index.php/en/openerp/open-erp-addons/reporting-engine/80-extra-functions) for most of common cases. So there is no need to write custom parser for reusable tasks. If you see any function that is not present there, but feel like it will be usable for others too, you may request including it along with other functions.

Best regards,

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: module use

Postby bb39700 » Mon Mar 15, 2010 4:23 pm

In fact, it's beacaue i make a module which calculate TRS for workcenter.
I have to make a report with all workcenters between to date.
Actually, i have a wizard which ask the 2 dates, make calculate of TRS, and print result i receive.
I think i have two ways :
- i keep my wizard but i must pass result to report (how with your module)
- i rewrite it with osv_memory and i print report with it (if i can, i never do it)
bb39700
 
Posts: 20
Joined: Sun Mar 14, 2010 6:04 pm

Re: module use

Postby sraps » Mon Mar 15, 2010 7:14 pm

Actually interfaces stayed the same, if I am not mistaken, there is "data" variable to receive output of wizard form...
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm


Return to Aeroo Reports & OpenOffice.org Reporting Engine

cron
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED