Skip to content

Commit

Permalink
[UPD] maintenance_request_employee: Add Employees in tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrondon committed Oct 10, 2023
1 parent 133c8b3 commit 823cfa2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions maintenance_request_employee/views/maintenance_request_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
domain="[('employee_ids.user_id', '=', uid)]"
/>
</xpath>
<xpath expr="//filter[@name='created_by']" position="after">
<filter
string='Employees'
name='employees'
domain="[]"
context="{'group_by': 'employee_ids'}"
/>
</xpath>
</field>
</record>
<record id="maintenance_request_view_form_inherit_hr" model="ir.ui.view">
Expand Down Expand Up @@ -61,4 +69,18 @@
</xpath>
</field>
</record>
<record id="maintenance_request_view_tree_inherit_hr" model="ir.ui.view">
<field name="name">maintenance.request.view.tree.inherit.hr</field>
<field name="model">maintenance.request</field>
<field
name="inherit_id"
ref="hr_maintenance.maintenance_request_view_tree_inherit_hr"
/>
<field name="arch" type="xml">
<xpath expr="//field[@name='employee_id']" position="after">
<field name="employee_ids" widget="many2many_tags" />
</xpath>
</field>
</record>

</odoo>

0 comments on commit 823cfa2

Please sign in to comment.