ok, know it now: in the addons/<<module>>/report/ folder one has to change the concerned xxx.py file. You have to add from tools import amount_to_text
Now the function must be initialized, so there is one more line to be added. For the sale-order-report (/addons/sale/report/order.py), it looks like this: class order(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): super(order, self).__init__(cr, uid, name, context) self.localcontext.update({ 'time': time, 'amount_to_text_fr': amount_to_text.amount_to_text_fr, }) In the report-rml-file this function can now be used typing something like: [[ amount_to_text_fr('2', "EUR') ]] _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
