Odoo 14 - 我看不到报告中的文字数量

问题描述

当我想在报告中添加字数时,它不显示任何内容。请帮忙。

enter image description here

enter image description here

李维

解决方法

您有 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()

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...