文字中的金额Odoo 10 [英] Amount in text Odoo 10
本文介绍了文字中的金额Odoo 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此处输入图片描述我要转换帐户发票中显示的总金额一言以蔽之,请帮忙.我无法解决.我也已经尝试过了,但是没有运气
enter image description hereI want to convert the total amount showing in account invoice to word, please help. I could not solve it. Also I already tried to it but no luck
推荐答案
您是否要在报告中或记录中使用它?
Did you want it in your report or for your record ?
报告
在Odoo10中,我通常会这样:
In Odoo10 I usually do like this:
<t t-esc="o.amount_total" t-esc-options='{"widget": "num2words","case":"capital"}'/>
在这里,我们必须安装num2words模块才能正常工作.您可以通过
Here we have to install num2words module for its correct working. You can install it by
pip install num2words
或只是Google.
pip install num2words
or just google.
这篇关于文字中的金额Odoo 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文