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 |
|---|---|---|
|
- ids = set(self._search_used('=', True)[0][2]) + 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 ids + record.used = record.id in used_ids |
|
