[FIX] hr_timesheet: set 'My' filters at the top of the list in the search view

Steps to reproduce:
 - Install timesheets
 - click on all timesheets
 - open search view

Issue:
 - in search view 'my' filters block should be at the top of the list

Cause:
 - misplacing of the name month filter causes the issue.

Solution:
 - if we replace that filter below the group then the issue will be solved.

task-3772684

closes odoo/odoo#155714

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
suth-odoo
2024-03-14 17:36:42 +00:00
committed by Xavier Bol (xbo)
parent 773aaf5c75
commit 6bc3368d3c
@@ -171,6 +171,10 @@
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="analytic.view_account_analytic_line_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='month']" position="before">
<filter name="mine" string="My Timesheets" domain="[('user_id', '=', uid)]"/>
<separator/>
</xpath>
<xpath expr="//group[@name='groupby']" position="before">
<field name="employee_id"/>
<field name="project_id"/>
@@ -178,7 +182,6 @@
<field name="parent_task_id"/>
<field name="department_id"/>
<field name="manager_id"/>
<filter name="mine" string="My Timesheets" domain="[('user_id', '=', uid)]"/>
</xpath>
<xpath expr="//group[@name='groupby']" position="inside">
<filter string="Project" name="groupby_project" domain="[]" context="{'group_by': 'project_id'}"/>