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

Module: AEAT Base

Entity: l10n.es.aeat.real_estate

Compute Method: _compute_real_estate_situation

Inputs Method Outputs
for rec in self:
            if not rec.reference:
                rec.real_estate_situation = "4"
            else:
                rec.real_estate_situation = "1"
                if rec.state_id:
                    code = rec.state_id.code
                    if code in ["BI", "SS", "VI"]:
                        rec.real_estate_situation = "2"
                    elif code == "NA":
                        rec.real_estate_situation = "3"

Back to entity