Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
in your python file import the following line
from openerp.tools import amount_to_text_en
Then create a function convert in your class in the file
def convert(self, amount, cur): amt_en = amount_to_text_en.amount_to_text(amount, 'en', cur) return amt_en
Here arguents are amount(float), language and currency. If you want to change the format again, then you can use any of the string operations like replace to replace the string we get from the amount_to_text() function
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/21/13, 6:01 AM|
|Seen: 1975 times|
|Last updated: 3/16/15, 8:10 AM|