Odoo Help


This community 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.


how to convert amount to letters in indian format???

on 11/21/13, 6:01 AM 1,824 views

how to convert amount to letters in indian format in invoice report??? can somebody help me

What do you mean by indian format ?

on 11/27/13, 3:36 AM

Anil R. Kesariya

--Anil R. Kesariya--
| 6 5 8
Gandhinagar, India
--Anil R. Kesariya--
ERP Consultant

Key Skill
Technical & Functional Expert
Anil R. Kesariya
On 11/27/13, 3:15 AM

#Improt this funciton in your py file

from openerp.tools.amount_to_text_en import amount_to_text
amt = 13456
amount_in_word = amount_to_text(amt)

print "Amount in word ::::::::::",amount_in_word

Hope this will help you.

Regards, Anil


Omal Bastin

--Omal Bastin--
| 6 6 8
Kochi, Kerala, India
--Omal Bastin--

Swiming deep into openERP/ODOO

Omal Bastin
On 11/28/13, 8:02 AM

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

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 11/21/13, 6:01 AM
Seen: 1824 times
Last updated: 3/16/15, 8:10 AM