Yanki Twizzy
Yanki Twizzy

Reputation: 8001

What is the purpose of the .py file that is also included in the report folder of OpenERP

From the documentation, OpenERP uses rml files to display reports. These reports are generated from .sxw files. I didn't see anything about the .py files that are also included in report folders. Please what is their purpose?

Upvotes: 2

Views: 150

Answers (1)

Don Kirkby
Don Kirkby

Reputation: 56730

Those python files in the report folders are RML parsers. They subclass the report_sxw.rml_parse class, and add extra functions to the report's local context if you need more than the standard functions. If you search the addons project for rml_parse you'll find a bunch of examples.

Upvotes: 2

Related Questions