(self)
Calculates the total_* fields from the line values.
Calculates the total_* fields from the line values.
Calculates the total_ * fields from the line values .
def _compute_totals_real_estate(self):
        """Calculates the total_* fields from the line values."""
        for record in self:
            record.total_real_estate_records = len(record.real_estate_record_ids)
            record.total_real_estate_amount = sum(
                record.mapped("real_estate_record_ids.amount")
            )
def _compute_totals_real_estate ( self ) : for record in self : record . total_real_estate_records = len ( record . real_estate_record_ids ) record . total_real_estate_amount = sum ( record . mapped ( "real_estate_record_ids.amount" ) )