1.4 KiB
1.4 KiB
Project Dashboard - Billable Hours
Display billable hours — timesheets linked to a sales order line — in the project dashboard panel.
This module extends the project.project dashboard with a "Billable Time" stat button showing the ratio of billable timesheets to total recorded timesheets.
Features
billable_hourscomputed field on projects: sum of timesheet hours whoseso_lineis set (computed in SQL via_read_groupfor batch performance).- "Billable Time" stat button on the project dashboard, displaying
billable / effective <uom>with the company's timesheet encoding unit. - Billable rate coloring:
- red when the rate is below 50%,
- orange when the rate is below 80%,
- green when the rate is 80% or above.
- Clicking the button opens the project's billable timesheets (timesheets linked to a sales order line), reusing the
sale_timesheetbillable time action with a restricted domain.
The button is only visible to users in the hr_timesheet.group_hr_timesheet_user group, on projects with both billing and timesheets enabled (allow_billable and allow_timesheets).
Installation
- Odoo 18.0
- Depends on
sale_timesheet(which bringssale,hr_timesheetandproject).
Credits
- Author: Elabore
- Contributor: Maud Buchwalter - Assisted by AI
- Repository: https://git.elabore.coop/elabore/project-tools
- License: AGPL-3