[MOD]hr_timesheet_sheet : usability improvement

bzr revid: dbr@tinyerp.com-20100906105913-zmig3xokniuvpztj
This commit is contained in:
DBR (OpenERP)
2010-09-06 16:29:13 +05:30
parent ca43930958
commit 2c1cdf6b0e
2 changed files with 4 additions and 4 deletions
@@ -753,7 +753,7 @@ class res_company(osv.osv):
"computation for one sheet. Set this to 0 if you do not want any control."),
}
_defaults = {
'timesheet_range': lambda *args: 'month',
'timesheet_range': lambda *args: 'week',
'timesheet_max_difference': lambda *args: 0.0
}
@@ -148,10 +148,10 @@
</notebook>
<field name="state"/>
<group col="4" colspan="2">
<button name="button_confirm" states="draft" string="Confirm" type="object" icon="terp-gtk-jump-to-rtl"/>
<button name="button_confirm" states="draft" string="Confirm" type="object" icon="terp-camera_test"/>
<button name="action_set_to_draft" states="done" string="Set to Draft" type="object" icon="terp-stock_effects-object-colorize"/>
<button name="cancel" states="confirm" string="Refuse" type="workflow" icon="gtk-cancel"/>
<button name="done" states="confirm" string="Accept" type="workflow" icon="terp-camera_test"/>
<button name="done" states="confirm" string="Approve" type="workflow" icon="gtk-jump-to"/>
</group>
</form>
</field>
@@ -165,7 +165,7 @@
<search string="Search Timesheet">
<group col="10" colspan="4">
<filter icon="terp-document-new" string="In Draft" domain="[('state','in',('draft', 'new'))]" help="Unvalidated Timesheets"/>
<filter icon="terp-gtk-go-back-rtl" string="To Approve" domain="[('state','=','confirm')]" help="Confirmed Timesheets"/>
<filter icon="terp-camera_test" string="To Approve" domain="[('state','=','confirm')]" help="Confirmed Timesheets"/>
<separator orientation="vertical"/>
<field name="user_id" select="1"/>
<field name="date_from"/>