mirror of
https://github.com/bringout/oca-ocb-l10n_me-africa.git
synced 2026-04-27 07:22:07 +02:00
Initial commit: L10N_Me Africa packages
This commit is contained in:
commit
c265268138
611 changed files with 75334 additions and 0 deletions
12
odoo-bringout-oca-ocb-l10n_dz/l10n_dz/models/account_move.py
Normal file
12
odoo-bringout-oca-ocb-l10n_dz/l10n_dz/models/account_move.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from odoo import api, models, fields
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
amount_total_words = fields.Char("Amount total in words", compute="_compute_amount_total_words")
|
||||
|
||||
@api.depends('amount_total', 'currency_id')
|
||||
def _compute_amount_total_words(self):
|
||||
for record in self:
|
||||
record.amount_total_words = record.currency_id.amount_to_text(record.amount_total)
|
||||
Loading…
Add table
Add a link
Reference in a new issue