-
- Downloads
[IMP] hr_timesheet: convert onchange to stored-editable computed fields
The fields 'project_id' and 'user_id' have been converted to stored-editable computed fields. Convert the 'allow_timesheets' field. Improvement of the _compute_task_id method to check the task_id field before using it. Update hr_timesheet tests by removing calls to onchange methods because now, compute methods are always called. Get back the onchange on the 'project_id' to compute the task_id field due to a complex bug found in sale_timesheet tests.
Showing
- addons/hr_timesheet/models/hr_timesheet.py 14 additions, 15 deletionsaddons/hr_timesheet/models/hr_timesheet.py
- addons/hr_timesheet/models/project.py 7 additions, 5 deletionsaddons/hr_timesheet/models/project.py
- addons/hr_timesheet/tests/test_timesheet.py 0 additions, 1 deletionaddons/hr_timesheet/tests/test_timesheet.py
- addons/hr_timesheet/views/project_views.xml 3 additions, 0 deletionsaddons/hr_timesheet/views/project_views.xml
Loading
Please register or sign in to comment