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

Module: Invoicing

Entity: account.tax

Compute Method: _compute_has_negative_factor

View 20.0
Inputs Method Outputs
  • invoice_repartition_line_ids
+ for tax in self:
+             tax_reps = tax.invoice_repartition_line_ids.filtered(lambda x: x.repartition_type == 'tax')
+             tax.has_negative_factor = bool(tax_reps.filtered(lambda tax_rep: tax_rep.factor < 0.0))
  • has_negative_factor

Back to entity