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

Module: PMS - Accounting

Entity: account.move

Compute Method: _compute_pms_property_ids

Inputs Method Outputs
for invoice in self:
            properties = self.env["pms.property"].search(
                [("invoice_line_ids", "in", invoice.line_ids.ids)]
            )
            invoice.property_ids = properties
            invoice.property_count = len(invoice.property_ids)

Back to entity