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

Module: Base

Entity: res.partner

Compute Method: _compute_has_vat

View 20.0
Inputs Method Outputs
  • vat
+ for partner in self:
+             vat = partner.vat
+             partner.has_vat = vat and vat not in ('/', 'na', 'NA')
  • has_vat

Back to entity