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

View 19.0 View 20.0
Inputs Method Outputs
  • state
  • move_ids
  • move_ids.move_line_ids
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)
            )
  • unreserve_visible
  • reserve_visible

Back to entity