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

Module: Invoicing

Entity: account.account

Compute Method: _compute_used

Inputs Method Outputs
  • id
domain = Domain('id', 'in', self.ids) & Domain('used', '=', True)
used_ids = set(self.sudo().with_context(active_test=False)._search(domain))
for record in self:
            record.used = record.id in used_ids

Back to entity