[IMP]POS-Backend:Added active and return class flow

bzr revid: tch@tinyerp.com-20120614062427-2o74wqmwil5vnxm8
This commit is contained in:
Twinkle (OpenERP) 2012-06-14 11:54:27 +05:30
parent 858608dad2
commit 8af4c098f9
2 changed files with 6 additions and 6 deletions

View File

@ -2531,8 +2531,8 @@ action = pool.get('res.config').next(cr, uid, [], context)
<field name="arch" type="xml">
<form version="7.0">
<header>
<button name="button_confirm_cash" states="open" string="Close CashBox" type="object"/>
<button name="button_open" states="draft" string="Open CashBox" type="object"/>
<button name="button_confirm_cash" states="open" string="Close CashBox" type="object" class="oe_form_button_active_flow"/>
<button name="button_open" states="draft" string="Open CashBox" type="object" class="oe_form_button_active_flow"/>
<button name="button_cancel" states="confirm,open" string="Cancel" type="object" groups="base.group_extended"/>
<field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
</header>

View File

@ -18,12 +18,12 @@
<field name="arch" type="xml">
<form string="PoS Orders" version="7.0">
<header>
<button name="%(action_pos_payment)d" string="Payment" type="action" states="draft"/>
<button name="%(action_pos_payment)d" string="Payment" type="action" states="draft" class="oe_form_button_active_flow"/>
<button name="%(action_report_pos_receipt)d" string="Reprint" type="action" states="paid,done,invoiced"/>
<button name="action_invoice" string="Invoice" icon="gtk-apply" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}"/>
<button name="done" string="Post Entries" icon="gtk-apply" type="workflow" states="paid"/>
<button name="action_invoice" string="Invoice" icon="gtk-apply" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}" class="oe_form_button_active_flow"/>
<button name="done" string="Post Entries" icon="gtk-apply" type="workflow" states="paid" class="oe_form_button_active_flow"/>
<button name="refund" string="Return Products" type="object"
attrs="{'invisible':[('state','=','draft')]}"/>
attrs="{'invisible':[('state','=','draft')]}" class="oe_form_button_return_flow"/>
<field name="state" widget="statusbar" statusbar_visible="draft,paid,done" statusbar_colors='{"cancel":"red"}'/>
</header>
<sheet>