[IMP] Improved code.

bzr revid: tpa@tinyerp.com-20120430071542-gockdwuv70ok2vp3
This commit is contained in:
Turkesh Patel (Open ERP)
2012-04-30 12:45:42 +05:30
parent a76e1f87c4
commit efccfbc143
2 changed files with 10 additions and 10 deletions
-2
View File
@@ -81,8 +81,6 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form layout="manual">
<div class="oe_form_topbar">
</div>
<sheet string="Analytic account" layout="auto">
<group colspan="4" col="6">
<field name="name" colspan="4"/>
@@ -22,14 +22,16 @@
<field name="amount_invoiced"/>
</group>
</group>
<xpath expr="/form/div" position='inside'>
<button name="set_open" string="Re-open project" type="object" states="pending,cancelled,close,draft" icon="gtk-ok"/>
<button name="set_close" string="Close" type="object" states="open,pending" icon="terp-dialog-close"/>
<button name="set_pending" string="Pending" type="object" states="open" icon="gtk-media-pause"/>
<button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
<div class="oe_right">
<field name="state" readonly="1" widget="statusbar" nolabel="1"
statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>
<xpath expr="/form/sheet" position='before'>
<div class="oe_form_topbar">
<button name="set_close" string="Close" type="object" states="open,pending" icon="terp-dialog-close"/>
<button name="set_open" string="Re-open project" type="object" states="pending,cancelled,close,draft" icon="gtk-ok"/>
<button name="set_pending" string="Pending" type="object" states="open" icon="gtk-media-pause"/>
<button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
<div class="oe_right">
<field name="state" readonly="1" widget="statusbar" nolabel="1"
statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>
</div>
</div>
</xpath>
</field>