Files
odoo_source/addons/l10n_ae/models/account_move_line.py
T
sal-odoo 8d6bd85d2b [IMP] l10n_ae: improve localization
- Adding the accounts required in UAE with correct codes
- Configuring taxes and tax grid according to legal requirements
- Add vat amount on account.move.line in a separate field
- Modify account.move report, mainly to talk about VAT and not about tax
- Journals added for Tax Adjustments and IFRS
- IFRS accounts can only use IFRS journal
- only one tax group for the accounts of the closing entry (tax_group_5)

closes odoo/odoo#75424

Related: odoo/enterprise#20309
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-02 00:43:27 +00:00

15 lines
501 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
l10n_ae_vat_amount = fields.Monetary(compute='_compute_vat_amount', string='VAT Amount')
@api.depends('price_subtotal', 'price_total')
def _compute_vat_amount(self):
for record in self:
record.l10n_ae_vat_amount = record.price_total - record.price_subtotal