Exemplo n.º 1
0
 def get_amont_in_word(self):
     for rec in self:
         rec.amont_in_word = number_to_word.to_word(float(rec.amount),
                                                    rec.currency_id.name)
Exemplo n.º 2
0
 def _onchange_amount(self):
     self.check_amount_in_words = number_to_word.to_word(
         self.amount, self.currency_id.name)
Exemplo n.º 3
0
 def get_amount_in_word(self):
     self.amount_in_word = number_to_word.to_word(float(self.amount),
                                                  self.currency_id.name)
Exemplo n.º 4
0
 def _compute_amount_in_word(self):
     """
     @api.depends() should contain all fields that will be used in the calculations.
     """
     self.amount_in_word = number_to_word.to_word(self.amount_total, self.currency_id.name)