diff --git a/open_workshop_base/models/ows_models.py b/open_workshop_base/models/ows_models.py index 96bc5a4..ba89c2c 100644 --- a/open_workshop_base/models/ows_models.py +++ b/open_workshop_base/models/ows_models.py @@ -194,7 +194,7 @@ class ResPartner(models.Model):
""" - machines = self.env['ows.machine'].search([('area_id', '=', area.id)], order="name") + machines = self.env['ows.machine'].search([('area_id', '=', area.id), ('category', '=', 'red')], order="name") for machine in machines: access = self.env['ows.machine.access'].search([