← Back to team overview

openerp-community team mailing list archive

let the user choose different styles for a report

 


Hello!

thank you for your fast and friendly help so far!

I'd like to make 4 similar RML/sxw reports:

The parser like for example:
/addons/product/report/product_pricelist.py
should be always the same, but with 4 different .rml to choose from:

Users's choice of HTML/PDF & Landscape/Portrait

So instead of the static path to the rml 
it should be filled with a variable:

report_sxw.report_sxw('report.product.pricelist','product.product','addons/product/report/product_pricelist.rml',parser=product_pricelist)



any ideas/suggestions ?

maybe someone did this in another module already?


have a niche day!

Martin




Follow ups