-
- Downloads
[FIX] hr_timesheet: Widget for planned hours
Before this commit:
The field `planned_hours` and `subtask_planned_hours` are present
twice. This causes problems with widget: different widgets are put
on different fields, but only the last on was put on all of them.
Code to edit label with hours/days is not flexible, we need to
write each possibilities.
After this commit:
All fields are present only once in the view. A new widget is
created to manage days with a factor. In this new widget, instead
of having a toggle button, we can insert a float.
When the widget timesheet_uom is set on a field, we modify his string
with hours/days.
closes odoo/odoo#56702
Taskid: 2326216
Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
Showing
- addons/hr_timesheet/models/project.py 4 additions, 7 deletionsaddons/hr_timesheet/models/project.py
- addons/hr_timesheet/static/src/js/timesheet_uom.js 22 additions, 0 deletionsaddons/hr_timesheet/static/src/js/timesheet_uom.js
- addons/hr_timesheet/views/project_views.xml 10 additions, 16 deletionsaddons/hr_timesheet/views/project_views.xml
- addons/project/models/project.py 1 addition, 1 deletionaddons/project/models/project.py
Loading
Please register or sign in to comment