问题描述
李维
解决方法
您有 word 中的金额字段吗?您可以更改您的语言。
amount_words = fields.Char(
'Amount in Words:',help="The invoice total amount in words is automatically
generated by the system..few languages are supported
currently",compute='_compute_num2words')
def _compute_num2words(self):
self.amount_words = (num2words(
self.amount_total,lang='en')).upper()