author: @kawam tags:#odoo,#python
Menambah fungsi terbilang di Odoo
amount_in_words = invoice.currency_id.with_context(lang=invoice.partner_id.lang or 'id_ID').amount_to_text(withholding_amount)Computed field in Odoo Studio:
for record in self:
record['x_studio_terbilang'] = record.currency_id.with_context(lang='id_ID').amount_to_text(record.amount_total)