[IMP] hr_timesheet: remove cancel button from wizard and improved view.

bzr revid: tpa@tinyerp.com-20120618055005-9u7w260t9btjan70
This commit is contained in:
Turkesh Patel (Open ERP) 2012-06-18 11:20:05 +05:30
parent 3b4d7df5e4
commit 5ab63d8bb3
3 changed files with 26 additions and 36 deletions

View File

@ -8,17 +8,15 @@
<field name="model">hr.analytical.timesheet.employee</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Monthly Employee Timesheet">
<form string="Monthly Employee Timesheet" version="7.0">
<header>
<button icon="gtk-print" string="Print" name="print_report" type="object" class="oe_form_button_active_flow"/>
</header>
<group colspan="4">
<field name="month"/>
<field name="year"/>
<field name="employee_id" colspan="3"/>
</group>
<separator colspan="4"/>
<group colspan="4" col="6">
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="gtk-print" string="Print" name="print_report" type="object"/>
</group>
</form>
</field>
</record>
@ -44,17 +42,15 @@
<field name="model">hr.analytical.timesheet.employee</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Print My Timesheet">
<form string="Print My Timesheet" version="7.0">
<header>
<button icon="gtk-print" string="Print" name="print_report" type="object" class="oe_form_button_active_flow"/>
</header>
<group colspan="4">
<separator string="This wizard will print monthly timesheet" colspan="4"/>
<field name="month"/>
<field name="year"/>
</group>
<separator colspan="4"/>
<group colspan="4" col="6">
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="gtk-print" string="Print" name="print_report" type="object"/>
</group>
</form>
</field>
</record>

View File

@ -8,7 +8,10 @@
<field name="model">hr.analytical.timesheet.users</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Monthly Employees Timesheet">
<form string="Monthly Employees Timesheet" version="7.0">
<header>
<button icon="gtk-print" string="Print" name="print_report" type="object" class="oe_form_button_active_flow"/>
</header>
<group height="260" width="460">
<group colspan="4">
<field name="month"/>
@ -16,11 +19,6 @@
<separator string="Employees" colspan="4"/>
<field name="employee_ids" colspan="4" nolabel="1"/>
</group>
<separator colspan="4"/>
<group colspan="4">
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="gtk-print" string="Print" name="print_report" type="object"/>
</group>
</group>
</form>
</field>

View File

@ -6,14 +6,12 @@
<field name="model">hr.sign.in.project</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sign In/Out by Project">
<form string="Sign In/Out by Project" verssion="7.0">
<header>
<button icon="gtk-ok" string="Sign in / Sign out" name="check_state" type="object" class="oe_form_button_active_flow"/>
</header>
<separator colspan="4" string="Sign In/Out by Project"/>
<label colspan="4" nolabel="1" string="Employees can encode their time spent on the different projects they are assigned on. A project is an analytic account and the time spent on a project generates costs on the analytic account. This feature allows to record at the same time the attendance and the timesheet."/>
<newline/>
<group colspan="4" col="6">
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="gtk-ok" string="Sign in / Sign out" name="check_state" type="object"/>
</group>
</form>
</field>
</record>
@ -23,7 +21,10 @@
<field name="model">hr.sign.in.project</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sign In/Out by Project">
<form string="Sign In/Out by Project" version="7.0">
<header>
<button icon="gtk-ok" string="Start Working" name="sign_in_result" type="object" class="oe_form_button_active_flow"/>
</header>
<group colspan="4" >
<separator string="Sign in" colspan="4"/>
<field name="name" readonly="True" />
@ -33,10 +34,6 @@
<field name="date"/>
<label string="(Keep empty for current time)" colspan="2"/>
</group>
<group colspan="4" col="6">
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="gtk-ok" string="Start Working" name="sign_in_result" type="object"/>
</group>
</form>
</field>
</record>
@ -56,7 +53,11 @@
<field name="model">hr.sign.out.project</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sign In/Out by Project">
<form string="Sign In/Out by Project" version="7.0">
<header>
<button icon="gtk-ok" string="Change Work" name="sign_out_result" type="object" class="oe_form_button_active_flow"/>
<button icon="gtk-ok" string="Stop Working" name="sign_out_result_end" type="object" class="oe_form_button_active_flow"/>
</header>
<group colspan="4" >
<separator string="General Information" colspan="4" />
<field name="name" readonly="True" />
@ -70,12 +71,7 @@
<label string="(Keep empty for current_time)" colspan="2"/>
<field name="analytic_amount"/>
</group>
<separator string="" colspan="4" />
<group colspan="4" col="6">
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="gtk-ok" string="Change Work" name="sign_out_result" type="object"/>
<button icon="gtk-ok" string="Stop Working" name="sign_out_result_end" type="object"/>
</group>
</form>
</field>
</record>