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

Module: PMS - Contracts

Entity: contract.contract

Compute Method: _compute_get_properties

Inputs Method Outputs
  • contract_line_ids
for contract in self:
            properties = contract.contract_line_ids.mapped("property_id")
            contract.property_ids = properties
            contract.property_count = len(properties)

Back to entity