-
- Downloads
[FIX] hr_timesheet, timer: Fix traceback in kanban view when using the timer
Currently, when the unit amount of line is zero and the timer time
spent on entry is less than one minutes then entries are unlinked
once the timer is stopped and due to that the entry disappear from the
kanban view and traceback is generated.
After this commit, we fix the issue by preventing the deletion of
entries by setting options 'prevent_deletion' on widget so we should
no allow to delete the entry if the option is set on widget.
closes odoo/odoo#50395
Taskid: 2230155
Closes: #49128
X-original-commit: 64b9a9b4deaee5a8139b0afbe3f222a476a038f9
Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
Showing
- addons/hr_timesheet/models/hr_timesheet.py 1 addition, 1 deletionaddons/hr_timesheet/models/hr_timesheet.py
- addons/hr_timesheet/views/hr_timesheet_views.xml 1 addition, 1 deletionaddons/hr_timesheet/views/hr_timesheet_views.xml
- addons/timer/static/src/js/timer_toggle_button.js 3 additions, 0 deletionsaddons/timer/static/src/js/timer_toggle_button.js
Please register or sign in to comment