[IMP]hr_holidays : view are improved and notes field removed

bzr revid: hsa@tinyerp.com-20120709054843-2k8p5jkkejl8rgbs
This commit is contained in:
Hardik 2012-07-09 11:18:43 +05:30
parent bb118fae42
commit 34869c7348
2 changed files with 5 additions and 2 deletions

View File

@ -274,7 +274,7 @@ class hr_holidays(osv.osv):
'name': record.name,
'categ_id': record.holiday_status_id.categ_id.id,
'duration': record.number_of_days_temp * 8,
'description': record.notes,
'description': record.name,
'user_id': record.user_id.id,
'date': record.date_from,
'end_date': record.date_to,

View File

@ -118,7 +118,10 @@
<field name="date_from" on_change="onchange_date_from(date_to, date_from)" required="1" nolabel="1" class="oe_online"/>
<label string="-"/>
<field name="date_to" on_change="onchange_date_from(date_to, date_from)" required="1" nolabel="1" class="oe_online"/>
<div><field name="number_of_days_temp" nolabel="1" class="oe_inline"/> <label string="days" class="oe_inline"/></div>
<div>
<field name="number_of_days_temp" nolabel="1" class="oe_inline"/>
<label string="days" class="oe_inline"/>
</div>
</group>
</group>
<group>