Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 68

Where to add a python function so that is callable by a RML report template?

$
0
0
I would like to extend the "Purchase Order" RML report with custom functionality. This module can be found at: openerp\addons\purchase\report and contains the python files: __init__.py order.py purchase_report.py request_quotation.py I tried to add the simple function def testme(): return "testme" to all of the above files and to call it from order.rml but the call failed under all circumstances. Then I tried to add a new dedicated file "testme.py" into this directory and import it into all of the above mentioned files. Still no luck. Where am I supposed to add my little function so that it is "visible" to the report template order.rml? Thanks in advance!

Viewing all articles
Browse latest Browse all 68

Trending Articles