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.tax

Compute Method: _compute_boolean_l10n_ro_nondeductible

Inputs Method Outputs
  • is_l10n_ro_record
  • invoice_repartition_line_ids
  • refund_repartition_line_ids
for record in self:
            if record.is_l10n_ro_record:
                record.l10n_ro_is_nondeductible = any(
                    record.invoice_repartition_line_ids.mapped("l10n_ro_nondeductible")
                    + record.refund_repartition_line_ids.mapped("l10n_ro_nondeductible")
                )
            else:
                record.l10n_ro_is_nondeductible = False

Back to entity