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: account.withholding.move

Compute Method: _compute_wht_cert_income_desc

Inputs Method Outputs
for rec in self:
            if rec.wht_cert_income_type:
                select_dict = dict(WHT_CERT_INCOME_TYPE)
                rec.wht_cert_income_desc = select_dict[rec.wht_cert_income_type]
            else:
                rec.wht_cert_income_desc = False

Back to entity