Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-form-add-topbar-apa-account_payment-mma
into lp:~openerp-dev/openobject-addons/trunk-form-add-topbar-apa.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-form-add-topbar-apa-account_payment-mma/+merge/104552
Hello Sir,
account_payment : Added state and buttons on top bar
Thanks.
mma
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-form-add-topbar-apa-account_payment-mma/+merge/104552
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-addons/trunk-form-add-topbar-apa-account_payment-mma
into lp:~openerp-dev/openobject-addons/trunk-form-add-topbar-apa.
=== modified file 'account_payment/account_payment_view.xml'
--- account_payment/account_payment_view.xml 2012-03-16 12:23:08 +0000
+++ account_payment/account_payment_view.xml 2012-05-03 13:03:26 +0000
@@ -100,8 +100,18 @@
<field name="model">payment.order</field>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Payment order">
- <group col="6" colspan="4">
+ <form layout="manual">
+ <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="mode" widget='selection'/>
<field name="user_id"/>
@@ -162,13 +172,7 @@
</field>
<field name="date_created"/>
<field name="date_done"/>
- <field name="state" readonly="1" select="1"/>
- <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>
+ </sheet>
</form>
</field>
</record>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp