Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Purchase Container
Entity: purchase.container
Compute Method: _compute_purchase_order_count
| Inputs | Method | Outputs |
|---|---|---|
|
- for record in self: - record.purchase_order_count = self.env["purchase.order"].search_count( - [ - ("state", "in", ("purchase", "done")), - ("container_ids", "=", self.id), - ], - ) |
|
