Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-form-add-topbar-apa-account_budget-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_budget-mma/+merge/104729
Hello Sir
account_budget : I have add state and buttons on top bar
Thanks.
mma
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-form-add-topbar-apa-account_budget-mma/+merge/104729
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_budget-mma
into lp:~openerp-dev/openobject-addons/trunk-form-add-topbar-apa.
=== modified file 'account_budget/account_budget_view.xml'
--- account_budget/account_budget_view.xml 2012-03-22 13:46:57 +0000
+++ account_budget/account_budget_view.xml 2012-05-04 12:46:23 +0000
@@ -104,7 +104,19 @@
<field name="model">crossovered.budget</field>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Budget">
+ <form layout="manual">
+ <div class="oe_form_topbar">
+ <button string="Confirm" name="confirm" states="draft" type="workflow" icon="gtk-apply" />
+ <button string="Approve" name="validate" states="confirm" type="workflow" icon="gtk-ok"/>
+ <button string="Done" name="done" states="validate" type="workflow" icon="gtk-jump-to" />
+ <button name="draft" states="cancel" string="Reset to Draft" type="workflow" icon="terp-stock_effects-object-colorize"/>
+ <button string="Cancel" name="cancel" states="confirm,validate" type="workflow" icon="gtk-cancel"/>
+ <div class="oe_right">
+ <field name="state" select="1" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
+ </div>
+ </div>
+ <sheet string="Budget" layout="auto">
+ <group class="oe_form_header">
<field name="name" colspan="1" select="1" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="code" colspan="1" select="1" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="creating_user_id" attrs="{'readonly':[('state','!=','draft')]}"/>
@@ -134,15 +146,8 @@
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
</form>
</field>
- <field name="state" select="1"/>
- <group col="4" colspan="2">
- <button string="Cancel" name="cancel" states="confirm,validate" type="workflow" icon="gtk-cancel"/>
- <button string="Confirm" name="confirm" states="draft" type="workflow" icon="gtk-apply" />
- <button string="Approve" name="validate" states="confirm" type="workflow" icon="gtk-ok"/>
- <button string="Done" name="done" states="validate" type="workflow" icon="gtk-jump-to" />
- <button name="draft" states="cancel" string="Reset to Draft" type="workflow" icon="terp-stock_effects-object-colorize"/>
</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