[IMP] hr_attendance: remove icons in SignIn/SignOut buttons and also put reverse img for present/absent in attendancenotifier

bzr revid: hmo@tinyerp.com-20120515074224-bcvnr8s201tw33uc
This commit is contained in:
Harry (OpenERP) 2012-05-15 13:12:24 +05:30
parent a98de2cea4
commit d1d4b1554c
3 changed files with 4 additions and 4 deletions

View File

@ -130,8 +130,8 @@
<field name="coach_id" position="after">
<group colspan="2">
<field name="state"/>
<button name="attendance_action_change" states="present" type="object" string="Sign Out" icon="gtk-go-forward" groups="base.group_hr_manager"/>
<button name="attendance_action_change" states="absent" type="object" string="Sign In" icon="gtk-go-back" groups="base.group_hr_manager"/>
<button name="attendance_action_change" states="present" type="object" string="Sign Out" groups="base.group_hr_manager"/>
<button name="attendance_action_change" states="absent" type="object" string="Sign In" groups="base.group_hr_manager"/>
</group>
</field>
</field>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -91,8 +91,8 @@
</field>
<group col="4" colspan="1">
<field name="state_attendance"/>
<button name="attendance_action_change" attrs="{'invisible': ['|', ('state_attendance','=',False), ('state_attendance', '=', 'absent')]}" type="object" string="Sign Out" icon="gtk-go-forward" groups="base.group_hr_manager"/>
<button name="attendance_action_change" attrs="{'invisible': [('state_attendance', '=', 'present')]}" type="object" string="Sign In" icon="gtk-go-back" groups="base.group_hr_manager"/>
<button name="attendance_action_change" attrs="{'invisible': ['|', ('state_attendance','=',False), ('state_attendance', '=', 'absent')]}" type="object" string="Sign Out" groups="base.group_hr_manager"/>
<button name="attendance_action_change" attrs="{'invisible': [('state_attendance', '=', 'present')]}" type="object" string="Sign In" groups="base.group_hr_manager"/>
<field name="total_attendance_day" widget="float_time" colspan="4"/>
</group>
<field colspan="4" context="{'date':date_current,'user_id':user_id}" domain="[('name','=',date_current)]" name="timesheet_ids" nolabel="1">