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

Module: Location management (aka Better ZIP)

Entity: res.partner

Compute Method: _compute_zip

Inputs Method Outputs
if hasattr(super(), "_compute_zip"):
            return super()._compute_zip()
for record in self:
            if record.zip_id:
                record.zip = record.zip_id.name

Back to entity