[IMP] hr_timesheet: Change the default group by on the timesheet.
Before this commit, - In menu 'all timesheet', the group by was project > employee and in menu reporting 'timesheet by Project' group by was project > employee So after this commit, change the default groupby on those menu as: - In 'all timesheet' menu group by: Employee > Project - In 'reporting by Project' menu group by: Project only closes odoo/odoo#47087 Taskid: 2194073 Related: https://github.com/odoo/enterprise/pull/8654 Related: odoo/enterprise#9076 Closes: #46017 X-original-commit: 523f0b2c1cbeb5e7b80412a1c4e6a440f41fea41 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -50,10 +50,7 @@
|
||||
<field name="name">Timesheets By Project</field>
|
||||
<field name="res_model">account.analytic.line</field>
|
||||
<field name="domain">[('project_id', '!=', False)]</field>
|
||||
<field name="context">{
|
||||
'search_default_groupby_project': 1,
|
||||
'search_default_groupby_employee': 1,
|
||||
}</field>
|
||||
<field name="context">{'search_default_groupby_project': 1}</field>
|
||||
<field name="search_view_id" ref="hr_timesheet_line_search"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
|
||||
@@ -249,7 +249,7 @@
|
||||
<field name="context">{
|
||||
'search_default_week':1,
|
||||
'search_default_groupby_employee':1,
|
||||
'search_default_groupby_project':1,
|
||||
'search_default_groupby_project':2,
|
||||
'search_default_groupby_task':1,
|
||||
}</field>
|
||||
<field name="help" type="html">
|
||||
|
||||
Reference in New Issue
Block a user