0

When I want to add the amount in words in a report it does not show anything. Please help.

enter image description here

enter image description here

Levi

Barbora
  • 921
  • 1
  • 6
  • 11

1 Answers1

0

You have the field for amount in word?You can change your language.

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()
Neural
  • 376
  • 3
  • 12