Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Repairs
Entity: repair.order
Compute Method: _compute_unreserve_visible
| Inputs | Method | Outputs |
|---|---|---|
|
for repair in self:
repair.unreserve_visible = (
- repair.state not in ('draft', 'done', 'cancel') and
+ repair.state == 'confirmed' and
any(repair.move_ids.move_line_ids.mapped('quantity_product_uom'))
)
repair.reserve_visible = (
- repair.state in ('confirmed', 'under_repair') and
+ repair.state == 'confirmed' and
any(not move.picked and move.product_uom_qty and move.state in ['confirmed', 'partially_available'] for move in repair.move_ids)
)
|
|
