[IMP]improve progress as per suggestion
[odoo/odoo.git] / addons / project / project_view.xml
index b1e3c90..e19ddc0 100644 (file)
             <field name="arch" type="xml">
                 <kanban>
                     <field name="effective_hours"/>
-                    <field name="total_hours"/>
+                    <field name="planned_hours"/>
                     <field name="date"/>
                     <field name="name"/>
                     <field name="members"/>
                     <field name="user_id"/>
                     <field name="date"/>
                     <field name="color"/>
+                    <field name="cal_days"/>
                     <field name="open_task"/>
                     <templates>
                         <t t-name="kanban-box">
                                             <tr>
                                                 <th align="left" width="70px">Progress</th>
                                                 <td align="left">
-                                                    <t t-esc="Math.round(record.effective_hours.raw_value/24)"/>/<t t-esc="Math.round(record.total_hours.raw_value/24)"/> days
+                                                    <t t-esc="Math.round(record.effective_hours.raw_value/record.cal_days.value)"/>/<t t-esc="Math.round(record.planned_hours.raw_value/record.cal_days.value)"/> days
                                                 </td>
                                             </tr>
                                         </table>