You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[IMP] hr_timesheet,sale_{project,timesheet}: add various improvements
Before this commit:
- project.task form view > it makes no sense to timesheet on a down
payment as this is not the service that was sold to the customer.
- users are not alerted that there are no remaining hours on the task
as the information can be a bit hidden under the timesheets notebook
After this commit:
- project.task form view > it's not possible to select an SOL linked
to a down payment for projects, tasks, timesheets and tickets.
- project.task form view > the progress is displayed in red if > 100%.
task-3476795
<tname="allocated_hours"t-if="record.allocated_hours.raw_value > 0 and record.allow_timesheets.raw_value"groups="hr_timesheet.group_hr_timesheet_user">
188
188
<tt-set="badge"t-value=""/>
189
-
<tt-set="badge"t-value="'border border-warning'"t-if="record.progress.raw_value >= 80 and record.progress.raw_value <= 100"/>
189
+
<tt-set="badge"t-value="'border border-warning'"t-if="record.progress.raw_value >= 0.8 and record.progress.raw_value <= 1"/>
help="Sales Order Item to which the time spent on this task will be added in order to be invoiced to your customer.\n"
765
765
"By default the sales order item set on the project will be selected. In the absence of one, the last prepaid sales order item that has time remaining will be used.\n"
project.sale_line_id=solorproject.sale_line_employee_ids.sale_line_id[:1] # get the first SOL containing in the employee mappings if no sol found in the search
0 commit comments