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)
def _onchange_amount(self): self.check_amount_in_words = number_to_word.to_word( self.amount, self.currency_id.name)
def get_amount_in_word(self): self.amount_in_word = number_to_word.to_word(float(self.amount), self.currency_id.name)
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)