diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-10-02 14:50:55 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-10-02 14:50:55 +0200 |
| commit | 5b910c668a6fc5cdc5a856ea2f8fad2df56d3a5c (patch) | |
| tree | db15e6e5807e4decf38821e2882fbfcd26707f81 /addons/hr_timesheet_sheet/static/src/xml/timesheet.xml | |
| parent | 51ba7db16756e763678a3848ce6b6ee30df48af4 (diff) | |
added readonly mode
bzr revid: nicolas.vanhoren@openerp.com-20121002125055-j01ea26yf9t3uwjg
Diffstat (limited to 'addons/hr_timesheet_sheet/static/src/xml/timesheet.xml')
| -rw-r--r-- | addons/hr_timesheet_sheet/static/src/xml/timesheet.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml b/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml index cb633543cec..4da95f59a11 100644 --- a/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml +++ b/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml @@ -16,7 +16,10 @@ <td><t t-esc="widget.account_names[account.account]"/></td> <t t-set="day_count" t-value="0"/> <td t-foreach="account.days" t-as="day"> - <input t-att-data-account="account.account" t-att-data-day-count="day_count" type="text"/> + <input t-if="!widget.get('effective_readonly')" t-att-data-account="account.account" + t-att-data-day-count="day_count" type="text" class="oe_timesheet_weekly_box"/> + <span t-if="widget.get('effective_readonly')" t-att-data-account="account.account" + t-att-data-day-count="day_count" class="oe_timesheet_weekly_box"/> <t t-set="day_count" t-value="day_count + 1"/> </td> <td t-att-data-account-total="account.account"> </td> |
