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:
parent
f2b5710178
commit
61213b2c0c
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user