Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: VAT VIES Validation
Entity: res.partner
Compute Method: _compute_vies_valid
| Inputs | Method | Outputs |
|---|---|---|
|
+ """Check the VAT number with VIES, if enabled.""" + if not self.env['res.company'].sudo().search_count([('vat_check_vies', '=', True)]): + self.vies_valid = False + return + for partner in self: + if not partner.has_vat: + partner.vies_valid = False + continue + if partner.parent_id and partner.parent_id.vat == partner.vat: + partner.vies_valid = partner.parent_id.vies_valid + continue + status = partner._check_vies_validity_iap() + partner._update_vies_status(status) |
|
