Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Romania - Nondeductible VAT

Entity: account.move.line

Compute Method: _compute_l10n_ro_nondeductible_amount

Inputs Method Outputs
  • deductible_amount
for line in self:
            ded_perc = int(100 - line.deductible_amount)
            if ded_perc in (50, 100):
                line.l10n_ro_nondeductible_percent = str(ded_perc)
            else:
                line.l10n_ro_nondeductible_percent = "0"

Back to entity