Sunday, June 27, 2021
1 change · master
Code cleanup and technical improvements
Timesheet time label logic has been consolidated into one shared place, reducing duplicated code across project and reporting areas. This makes future maintenance easier and helps keep timesheet displays consistent when used by different parts of the system.
Original PR description
The purpose of the commit is in order to avoid code duplication and ease maintenance, the _apply_time_label method has been centralized in hr.timesheet which makes more sense since the relation to the timesheet encoding unit. It can now be used in other models by providing the right model name. TaskID: 2451722