Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7734 มุมมอง

i actually wanted to display the total revenue planned in words say ten thousand rupees instead 0f 10000...plz help me in this....help me out..it would be helpful..

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

To convert amount to word you can use the amount_to_text function defined in openerp/tools/amount_to_text_en.py

Exemple:
from openerp.tools import amount_to_text_en

amount_to_text_en.amount_to_text(10000, 'en', 'EURO')
--> Ten Thousand EURO and Zero Cent

อวตาร
ละทิ้ง
ผู้เขียน

hey i found that in openerp/server/addons/library.zip/tools....how should i proceed next to import this to my database...to sales order

ผู้เขียน

hey i dont know how to import it....when i added that in sale.py i get an error.....can you plz tell me the procedure where should i do this....