make fileld editable for timesheet block

This commit is contained in:
pawan.sharma 2022-09-05 11:03:03 +05:30
parent 337c3b6602
commit 754c71ddda
1 changed files with 5 additions and 5 deletions

View File

@ -12,12 +12,12 @@
type="action" groups="hr.group_hr_manager"
class="oe_highlight"/>
<group/>
<field name="permission_block_history" readonly="1" groups="hr_timesheet.group_timesheet_manager">
<tree editable="bottom">
<field name="start_date"/>
<field name="end_date"/>
<field name="permission_block_history" readonly="0" groups="hr_timesheet.group_timesheet_manager">
<tree editable="bottom" create="false">
<field name="start_date" required="1"/>
<field name="end_date" required="1"/>
<field name="reason"/>
<field name="user_id"
<field name="user_id" readonly="1"
options="{'no_create': True, 'no_create_edit':True, 'no_open': True}"/>
<field name="employee_id" invisible="1"
options="{'no_create': True, 'no_create_edit':True, 'no_open': True}"/>