diff options
| author | shs-odoo <shs@odoo.com> | 2020-02-13 07:36:05 +0000 |
|---|---|---|
| committer | Barad Mahendra <mba@openerp.com> | 2020-03-06 14:00:45 +0000 |
| commit | 4d9e3171140da0672a4cfd95dbdaf64c7ef45507 (patch) | |
| tree | abd8d063a2fd6eff80db741e1d941f6fe14cb39c | |
| parent | 17e12603a281353f9630dd5fc851324dbdddee55 (diff) | |
[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>
| -rw-r--r-- | addons/hr_timesheet/report/hr_timesheet_report_view.xml | 5 | ||||
| -rw-r--r-- | addons/hr_timesheet/views/hr_timesheet_views.xml | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/addons/hr_timesheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet/report/hr_timesheet_report_view.xml index 2641008d457..c98199cae91 100644 --- a/addons/hr_timesheet/report/hr_timesheet_report_view.xml +++ b/addons/hr_timesheet/report/hr_timesheet_report_view.xml @@ -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"> diff --git a/addons/hr_timesheet/views/hr_timesheet_views.xml b/addons/hr_timesheet/views/hr_timesheet_views.xml index 7106debc57c..43a99afc0f3 100644 --- a/addons/hr_timesheet/views/hr_timesheet_views.xml +++ b/addons/hr_timesheet/views/hr_timesheet_views.xml @@ -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"> |
