[FIX] sale_timesheet: zero timesheet
1. Create a SO with a product that creates a task on a new project 2. Create a timesheet on the task, with time = 0:00 3. Open the project overview from the projects dashboard or from the SO A crash occurs because of a division by zero. opw-1893397 closes odoo/odoo#27712
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
<td>
|
||||
<div class="progress" t-att-style="'width: ' + str(repartition_employee[employee_id]['total'] / repartition_employee_max * 100) +'%'">
|
||||
|
||||
<t t-set="total" t-value="repartition_employee[employee_id]['total']" />
|
||||
<t t-set="total" t-value="repartition_employee[employee_id]['total'] or 1.0" />
|
||||
<t t-set="billable_fixed" t-value="repartition_employee[employee_id]['billable_fixed']" />
|
||||
<t t-set="billable_time" t-value="repartition_employee[employee_id]['billable_time']" />
|
||||
<t t-set="non_billable" t-value="repartition_employee[employee_id]['non_billable']" />
|
||||
|
||||
Reference in New Issue
Block a user