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.
This commit is contained in:
Matthias Lotz 2026-03-09 21:18:34 +01:00
parent f2b5710178
commit 61213b2c0c

View File

@ -194,7 +194,7 @@ class ResPartner(models.Model):
<tbody>
"""
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([