From 61213b2c0c1f52f3a6b96ab262e9e46d47b3ef69 Mon Sep 17 00:00:00 2001 From: "matthias.lotz" Date: Mon, 9 Mar 2026 21:18:34 +0100 Subject: [PATCH] fix: filter machine access HTML view to show only red category machines Only display machines with category='red' (training required) in the partner machine access HTML view to avoid cluttering the view with non-training-relevant machines. --- open_workshop_base/models/ows_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([