[IMP]account_payment : Added state and buttons on top bar

bzr revid: mma@tinyerp.com-20120503124408-emij8pwmtqbky2k4
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-05-03 18:14:08 +05:30
parent 70c7252b2c
commit 99c3d81f15
1 changed files with 13 additions and 9 deletions

View File

@ -100,8 +100,18 @@
<field name="model">payment.order</field> <field name="model">payment.order</field>
<field name="type">form</field> <field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Payment order"> <form layout="manual">
<group col="6" colspan="4"> <div class="oe_form_topbar">
<button name="open" states="draft" string="Confirm Payments" icon="gtk-apply"/>
<button name="set_done" states="open" string="Make Payments" type="object" icon="gtk-execute"/>
<button name="set_to_draft" states="cancel" string="Set to draft" type="object" icon="gtk-convert"/>
<button name="cancel" states="draft,open" string="Cancel" icon="gtk-cancel"/>
<div class="oe_right">
<field name="state" select="1" widget="statusbar" nolabel="1" statusbar_visible="draft,open"/>
</div>
</div>
<sheet string="Payment order" layout="auto">
<group col="6" colspan="4" class="oe_form_header">
<field name="reference"/> <field name="reference"/>
<field name="mode" widget='selection'/> <field name="mode" widget='selection'/>
<field name="user_id"/> <field name="user_id"/>
@ -162,13 +172,7 @@
</field> </field>
<field name="date_created"/> <field name="date_created"/>
<field name="date_done"/> <field name="date_done"/>
<field name="state" readonly="1" select="1"/> </sheet>
<group col="4" colspan="2">
<button name="cancel" states="draft,open" string="Cancel" icon="gtk-cancel"/>
<button name="open" states="draft" string="Confirm Payments" icon="gtk-apply"/>
<button name="set_done" states="open" string="Make Payments" type="object" icon="gtk-execute"/>
<button name="set_to_draft" states="cancel" string="Set to draft" type="object" icon="gtk-convert"/>
</group>
</form> </form>
</field> </field>
</record> </record>