[IMP] project,hr_timesheet: improve project and task search views

This commit brings a few improvements to the project.project and project.task
search views.

Task-3264820

closes odoo/odoo#118515

Related: odoo/enterprise#39766
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Vincent Larcin
2023-04-25 21:10:39 +02:00
parent b45974773a
commit e7afea2434
3 changed files with 7 additions and 7 deletions
@@ -82,7 +82,7 @@
<field name="inherit_id" ref="project.view_project_project_filter"/>
<field name="arch" type="xml">
<filter name="late_milestones" position="before">
<filter string="Timesheets Exceeded" name="projects_in_overtime" domain="[('is_project_overtime', '=', True)]"/>
<filter string="Timesheets &gt;100%" name="projects_in_overtime" domain="[('is_project_overtime', '=', True)]"/>
</filter>
</field>
</record>
@@ -191,7 +191,7 @@
<filter string="Project Manager" name="Manager" context="{'group_by': 'user_id'}"/>
<filter string="Stage" name="groupby_stage" context="{'group_by': 'stage_id'}" groups="project.group_project_stages"/>
<filter string="Status" name="status" context="{'group_by': 'last_update_status'}"/>
<filter string="Customer" name="Partner" context="{'group_by': 'partner_id'}"/>
<filter string="Tags" name="tags" context="{'group_by': 'tag_ids'}"/>
<filter string="Company" name="company" context="{'group_by': 'company_id'}" groups="base.group_multi_company"/>
</group>
</search>
+5 -5
View File
@@ -13,11 +13,12 @@
<field name="stage_id"/>
<field name="milestone_id" groups="project.group_project_milestone"/>
<field name="partner_id" operator="child_of"/>
<field name="description"/>
<filter string="Followed" name="followed_by_me" domain="[('message_is_follower', '=', True)]"/>
<filter string="Unassigned" name="unassigned" domain="[('user_ids', '=', False)]"/>
<separator invisible="context.get('default_project_id')"/>
<filter string="Favorite Projects" name="favorite_projects" domain="[('project_id.is_favorite', '=', True)]" invisible="context.get('default_project_id')"/>
<separator/>
<filter string="Starred Tasks" name="starred_tasks" domain="[('priority', '=', '1')]"/>
<separator groups="project.group_project_task_dependencies"/>
<filter string="Blocked" name="blocked" domain="[('state', '=', '04_waiting_normal')]" groups="project.group_project_task_dependencies"/>
<filter string="Blocking" name="blocking" domain="[('is_closed', '=', False), ('dependent_ids', '!=', False)]" groups="project.group_project_task_dependencies"/>
@@ -33,6 +34,7 @@
<filter string="Assignees" name="user" context="{'group_by': 'user_ids'}"/>
<filter string="Stage" name="stage" context="{'group_by': 'stage_id'}"/>
<filter string="Milestone" name="milestone" context="{'group_by': 'milestone_id'}" groups="project.group_project_milestone"/>
<filter string="Tags" name="tags" context="{'group_by': 'tag_ids'}"/>
<filter string="Customer" name="customer" context="{'group_by': 'partner_id'}"/>
<filter string="Company" name="company_id" context="{'group_by': 'company_id'}" groups="base.group_multi_company"/>
<filter string="Creation Date" name="create_date" context="{'group_by': 'create_date'}"/>
@@ -56,8 +58,6 @@
</field>
<field name="partner_id" position="after">
<field name="company_id" groups="base.group_multi_company"/>
</field>
<field name="description" position="after">
<filter string="My Tasks" name="my_tasks" domain="[('user_ids', 'in', uid)]"/>
</field>
<filter name="stage" position="after">
@@ -90,9 +90,9 @@
<field name="mode">primary</field>
<field name="priority">10</field>
<field name="arch" type="xml">
<field name="description" position="after">
<filter name="my_tasks" position="before">
<field string="Properties" name="task_properties"/>
</field>
</filter>
<filter name="inactive" position="before">
<filter string="Unread Messages" name="message_needaction" domain="[('message_needaction', '=', True)]" groups="mail.group_mail_notification_type_inbox"/>
<separator/>