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

Module: Thai Localization - VAT and Withholding Tax

Entity: withholding.tax.cert.line

Compute Method: _compute_wht_bank_account

Inputs Method Outputs
for rec in self:
            rec.wht_cert_bank_account = False
            if rec.cert_id.payment_id:
                rec.wht_cert_bank_account = rec.cert_id.payment_id.partner_bank_id.id

Back to entity