in order to convert the amount to text in the sales order
I add the following lines in the sale/report/sale_order.py
from openerp.tools import amount_to_text
from openerp.tools import amount_to_text_en
'amount_to_text_en': amount_to_text_en, In the code
Then in the corresponding rml file i add [[str(amount_to_text(o.amount_total,"Ruppes"))]]
And in report.sxw also added this line. [[str(amount_to_text(o.amount_total,"Ruppes"))]]
But it will not generate any change in the printable report..
By looking on the openerp-server log file below mentioned warning displayed..
openerp.tools.safe_eval: Cannot eval 'str(amount_to_text(o.amount_total,"Ruppes"))'
Traceback (most recent call last): File "/opt/openerp/server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in <module> NameError: name 'amount_to_text' is not defined
How can be make amount to text in openerp v7.0