How to convert amount in words in canadian format????
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
This question has been flagged
1
Reply
3483
Views
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
whats the canadian format???
I mean in pricelist when i select amount in CAD....i want the amount in canadian format