当我想在报告中以文字形式添加金额时,它不会显示任何内容。请帮忙。
列维
你有单词数量的字段吗?你可以改变你的语言。
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()