[IMP] hr_timesheet: hide remaining hours if planned hours not set
If the planned hours are not defined on a project.task, the remaining hours should be hidden. Task ID - 1930975 closes odoo/odoo#30802 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
This commit is contained in:
committed by
Barad Mahendra
parent
6b73d23f7a
commit
0152e95eb3
@@ -137,7 +137,7 @@
|
||||
<field name="effective_hours" widget="float_time" />
|
||||
<field name="subtask_effective_hours" widget="float_time" attrs="{'invisible' : [('subtask_effective_hours', '=', 0.0)]}" />
|
||||
<field name="total_hours_spent" widget="float_time" class="oe_subtotal_footer_separator" attrs="{'invisible' : [('subtask_effective_hours', '=', 0.0)]}" />
|
||||
<field name="remaining_hours" widget="float_time" class="oe_subtotal_footer_separator"/>
|
||||
<field name="remaining_hours" widget="float_time" class="oe_subtotal_footer_separator" attrs="{'invisible' : [('planned_hours', '=', 0.0)]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user