Skip to content

Commit

Permalink
[IMP] maintenance_project: Add groups="maintenance.group_equipment_ma…
Browse files Browse the repository at this point in the history
…nager" to maintenance fields

TT50829
  • Loading branch information
victoralmau committed Sep 16, 2024
1 parent c8a0721 commit 5b185e5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions maintenance_project/views/project_project_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@
<field name="inherit_id" ref="project.view_project_kanban" />
<field name="arch" type="xml">
<xpath expr="//field[@name='rating_status']" position="after">
<field name="equipment_count" />
<field name="maintenance_request_count" />
<field
name="equipment_count"
groups="maintenance.group_equipment_manager"
/>
<field
name="maintenance_request_count"
groups="maintenance.group_equipment_manager"
/>
</xpath>
<xpath expr="//div[hasclass('o_project_kanban_boxes')]" position="inside">
<a
class="o_project_kanban_box"
name="action_view_equipment_ids"
type="object"
groups="maintenance.group_equipment_manager"
>
<div>
<span class="o_value">
Expand All @@ -25,6 +32,7 @@
class="o_project_kanban_box"
name="action_view_maintenance_request_ids"
type="object"
groups="maintenance.group_equipment_manager"
>
<div>
<span class="o_value">
Expand All @@ -46,6 +54,7 @@
name="action_view_equipment_ids"
type="object"
icon="fa-ticket"
groups="maintenance.group_equipment_manager"
>
<field
string="Equipments"
Expand All @@ -58,6 +67,7 @@
name="action_view_maintenance_request_ids"
type="object"
icon="fa-tasks"
groups="maintenance.group_equipment_manager"
>
<field
string="Requests"
Expand Down

0 comments on commit 5b185e5

Please sign in to comment.