diff --git a/open_workshop_base/models/ows_models.py b/open_workshop_base/models/ows_models.py index 4020b6c..193ea42 100644 --- a/open_workshop_base/models/ows_models.py +++ b/open_workshop_base/models/ows_models.py @@ -724,7 +724,7 @@ class OwsMachine(models.Model): _logger.info("Access RPC called with partner_id=%s", partner_id) access_by_area = [] for area in areas: - machines = self.search([('area_id', '=', area.id), ('category', '=', 'red')], order="name") + machines = self.search([('area_id', '=', area.id), ('category', '=', 'red'), ('equipment_id.status_id.name', '!=', 'Ausgemustert')], order="name") machine_list = [] for machine in machines: has_access = bool(self.env['ows.machine.access'].search([