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

Module: Third Party and Deferred/Electronic Checks Management

Entity: l10n_latam.check

Compute Method: _compute_issuer_vat

Inputs Method Outputs
new_third_party_checks = self.filtered(lambda x: x.payment_method_line_id.code == 'new_third_party_checks')
for rec in new_third_party_checks:
            rec.issuer_vat = rec.payment_id.partner_id.vat
(self - new_third_party_checks).issuer_vat = False

Back to entity