[FIX] hr_timesheet_sheet: hide button "Add a Line" if readonly sheet

The 'Add a line' button should be hidden when the sheet is readonly.
For instance, for a submitted employee sheet.

closes #4297
opw-628160
This commit is contained in:
Anthony Muschang
2015-02-17 10:56:14 +01:00
committed by Denis Ledoux
parent a87d60f70f
commit 772b213e69
@@ -36,7 +36,7 @@
<tr class="oe_timesheet_total">
<td>
<div class="oe_timesheet_weekly_adding_tot">
<div class="oe_timesheet_weekly_adding"><button class="oe_timesheet_button_add">Add a Line</button></div>
<div t-if="!widget.get('effective_readonly')" class="oe_timesheet_weekly_adding"><button class="oe_timesheet_button_add">Add a Line</button></div>
<div class="oe_timesheet_weekly_tottot"><span>Total</span></div>
</div>
</td>