Community mailing list archives

community@mail.odoo.com

Re: Parser rool on aeroo report defintion v7

by
Apertoso, Jos De Graeve
- 05/29/2015 15:24:07

Hi,

When using a parser you can define some helper functions for your report.

Let's say for example on a sale order report, you want to print a title quotation or order in the right language and depending on the state of the sale order.  If you want to do this with statements in the report, you will end up with a large amount of directives making the report complicated.  If you write a helper function, you keep the report template easier to understand and put the python code in a proper function.

Regards,
Jos