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

Module: Invoicing

Entity: res.company

Compute Method: _compute_company_vat_placeholder

Inputs Method Outputs
for company in self:
            expected_vat = ''
            if company.country_id or company.account_fiscal_country_id:
                expected_vat = _ref_vat.get(
                    (company.country_id.code or company.account_fiscal_country_id.code).lower()
                )

            company.company_vat_placeholder = self.env._(expected_vat or '')

Back to entity