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

Module: AEAT modelo 190

Entity: l10n.es.aeat.mod190.report.line

Compute Method: _compute_codigo_provincia

Inputs Method Outputs
for item in self:
            code = SPANISH_STATES.get(item.partner_id.state_id.code)
            item.codigo_provincia = code if code else "98"

Back to entity