[IMP] hr_payroll: improved color of button based on business flow

bzr revid: tpa@tinyerp.com-20120614062441-040366zt7ymws9le
This commit is contained in:
Turkesh Patel (Open ERP) 2012-06-14 11:54:41 +05:30
parent 8f92b3629e
commit fb9dd03f05
1 changed files with 6 additions and 6 deletions

View File

@ -258,10 +258,10 @@
<field name="arch" type="xml">
<form string="Payslip" version="7.0">
<header>
<button string="Confirm" name="hr_verify_sheet" states="draft"/>
<button string="Refund" name="refund_sheet" states="confirm,done" type='object'/>
<button string="Confirm" name="hr_verify_sheet" states="draft" class="oe_form_button_active_flow"/>
<button string="Refund" name="refund_sheet" states="confirm,done" type='object' class="oe_form_button_return_flow"/>
<button string="Set to Draft" name="draft" states="cancel"/>
<button string="Compute Sheet" name="compute_sheet" type="object" states="draft"/>
<button string="Compute Sheet" name="compute_sheet" type="object" states="draft" class="oe_form_button_active_flow"/>
<button string="Cancel" name="cancel_sheet" states="draft,hr_check,confirm,verify"/>
<field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
</header>
@ -721,9 +721,9 @@
<field name="arch" type="xml">
<form string="Payslips Batches" version="7.0">
<header>
<button name="close_payslip_run" type="object" string="Close" states="draft"/>
<button name="%(action_hr_payslip_by_employees)d" type="action" states="draft" string="Generate Payslips" />
<button string="Set to Draft" name="draft_payslip_run" type="object" states="close"/>
<button name="close_payslip_run" type="object" string="Close" states="draft" class="oe_form_button_active_flow"/>
<button name="%(action_hr_payslip_by_employees)d" type="action" states="draft" string="Generate Payslips" class="oe_form_button_active_flow"/>
<button string="Set to Draft" name="draft_payslip_run" type="object" states="close" class="oe_form_button_return_flow"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>