[FIX] mrp: force computation of time_cycle in workcenter form view

Without this time_cycle is not computed in the tree view on new
workcenters created through 'Add an item'. This leads to the
time_cycle field being displayed as NaN:NaN. This forces computation
on the form view opened through 'Add an item' which solves the issue.
This commit is contained in:
Rohit Ramnani
2017-09-26 20:04:19 -07:00
committed by Joren Van Onder
parent 7295ed473e
commit 088a329749
+1
View File
@@ -40,6 +40,7 @@
<div attrs="{'invisible': [('time_mode', '=', 'auto'), ('workorder_count', '!=' , 0)]}">
<field name="time_cycle_manual" widget="float_time" class="oe_inline"/> minutes
</div>
<field name="time_cycle" invisible="1"/>
</group>
</group>
<notebook>