-
- Downloads
[MERGE] hr_timesheet: log timesheet in any time UoM
Since uom management has been extract in a separated module, we can now add the possibility to use it without product. This commit brings the ability to record the timesheets in an different UoM than 'Hours'. The user can now set an encoding UoM for its timesheet on the company. This will display the timesheet field `unit_amount` with a different widget. For instance, timesheeting in hours will still use the traditionnal float_time widget, when timesheeting in 'Days' will displayed a toggle button with a range of defined possible values. The widget used by UoM is customizable on the UoM. The `unit_amount` field should now be decorated with the 'timesheet_uom' widget. This one will bind the correct widget (float_time, float_toggle, ...). If the encoding UoM has no widget associated, the fallback will be 'float_factor', using the uoM converstion factor. Everything will still be stored in the database in 'Hours' (the UoM set on the `project_mode_time_id` field on the company). For more details, please have a look at the subcommits. Task #39079 Closes #24893
Showing
- addons/hr_timesheet/__manifest__.py 2 additions, 1 deletionaddons/hr_timesheet/__manifest__.py
- addons/hr_timesheet/data/hr_timesheet_data.xml 11 additions, 1 deletionaddons/hr_timesheet/data/hr_timesheet_data.xml
- addons/hr_timesheet/models/__init__.py 3 additions, 0 deletionsaddons/hr_timesheet/models/__init__.py
- addons/hr_timesheet/models/hr_timesheet.py 29 additions, 0 deletionsaddons/hr_timesheet/models/hr_timesheet.py
- addons/hr_timesheet/models/ir_http.py 21 additions, 0 deletionsaddons/hr_timesheet/models/ir_http.py
- addons/hr_timesheet/models/project.py 7 additions, 0 deletionsaddons/hr_timesheet/models/project.py
- addons/hr_timesheet/models/res_company.py 13 additions, 0 deletionsaddons/hr_timesheet/models/res_company.py
- addons/hr_timesheet/models/res_config_settings.py 9 additions, 0 deletionsaddons/hr_timesheet/models/res_config_settings.py
- addons/hr_timesheet/models/uom.py 10 additions, 0 deletionsaddons/hr_timesheet/models/uom.py
- addons/hr_timesheet/security/ir.model.access.csv 0 additions, 2 deletionsaddons/hr_timesheet/security/ir.model.access.csv
- addons/hr_timesheet/static/src/js/timesheet_uom.js 86 additions, 0 deletionsaddons/hr_timesheet/static/src/js/timesheet_uom.js
- addons/hr_timesheet/views/assets.xml 8 additions, 0 deletionsaddons/hr_timesheet/views/assets.xml
- addons/hr_timesheet/views/hr_timesheet_views.xml 9 additions, 7 deletionsaddons/hr_timesheet/views/hr_timesheet_views.xml
- addons/hr_timesheet/views/hr_views.xml 14 additions, 0 deletionsaddons/hr_timesheet/views/hr_views.xml
- addons/hr_timesheet/views/project_views.xml 1 addition, 1 deletionaddons/hr_timesheet/views/project_views.xml
- addons/hr_timesheet/views/res_config_settings_views.xml 28 additions, 1 deletionaddons/hr_timesheet/views/res_config_settings_views.xml
- addons/project/__manifest__.py 0 additions, 1 deletionaddons/project/__manifest__.py
- addons/project/models/__init__.py 0 additions, 1 deletionaddons/project/models/__init__.py
- addons/project/models/project.py 0 additions, 42 deletionsaddons/project/models/project.py
- addons/project/models/res_config_settings.py 0 additions, 5 deletionsaddons/project/models/res_config_settings.py
Loading
Please register or sign in to comment