[ADD] : Add color on button

bzr revid: aja@tinyerp.com-20120614051505-3czyl7isanon71jm
This commit is contained in:
ajay javiya (OpenERP) 2012-06-14 10:45:05 +05:30
parent 82f6efb08c
commit 599468369a
5 changed files with 16 additions and 16 deletions

View File

@ -274,11 +274,11 @@
<field name="arch" type="xml">
<form version="7.0">
<header>
<button name="action_invoice_sent" type="object" string="Send by Email" states="open" attrs="{'invisible':['|',('sent','=',True), ('state', '=', 'draft')]}"/>
<button name="action_invoice_sent" type="object" string="Send by Email" states="open" class="oe_form_button_active_flow" attrs="{'invisible':['|',('sent','=',True), ('state', '=', 'draft')]}"/>
<button name="invoice_print" string="Print Invoice" type="object" states="open" attrs="{'invisible':['|',('sent','=',True), ('state', '=', 'draft')]}"/>
<button name="invoice_open" states="draft,proforma2" string="Validate"/>
<button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_form_button_active_flow"/>
<button name="invoice_proforma2" states="draft" string="PRO-FORMA" groups="account.group_proforma_invoices"/>
<button name="%(action_account_invoice_refund)d" type='action' string='Refund Invoice' states='paid'/>
<button name="%(action_account_invoice_refund)d" type='action' string='Refund Invoice' states='paid' class="oe_form_button_return_flow"/>
<button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" groups="base.group_no_one"/>
<button name="action_cancel_draft" states="cancel" string="Reset to Draft" type="object"/>
<button name='%(action_account_state_open)d' type='action' string='Re-Open' groups="account.group_account_invoice" attrs="{'invisible':['|', ('state','&lt;&gt;','paid'), ('reconciled', '=', True)]}" help="This button only appears when the state of the invoice is 'paid' (showing that it has been fully reconciled) and auto-computed boolean 'reconciled' is False (depicting that it's not the case anymore). In other words, the invoice has been dereconciled and it does not fit anymore the 'paid' state. You should press this button to re-open it and let it continue its normal process after having resolved the eventual exceptions it may have created."/>

View File

@ -8,7 +8,7 @@
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<button name="invoice_open" position="after">
<button name="invoice_pay_customer" type="object" string="Register Payment" states="open" icon="gtk-go-forward"/>
<button name="invoice_pay_customer" type="object" class="oe_form_button_active_flow" string="Register Payment" states="open" icon="gtk-go-forward"/>
</button>
</field>
</record>

View File

@ -24,9 +24,11 @@
</group>
<xpath expr="/form/sheet" position='before'>
<header>
<button name="set_pending" string="Pending" type="object" states="open"/>
<button name="set_close" string="Close" type="object" states="open,pending"/>
<button name="set_open" string="Re-open project" type="object" states="pending,cancelled,close,draft"/>
<button name="set_pending" string="Pending" type="object" states="open" class="oe_form_button_active_flow"/>
<button name="set_close" string="Close" type="object" states="open" class="oe_form_button_active_flow"/>
<button name="set_close" string="Close" type="object" states="pending" class="oe_form_button_return_flow"/>
<button name="set_open" string="Re-open project" type="object" states="pending,close" class="oe_form_button_return_flow"/>
<button name="set_open" string="Re-open project" type="object" states="cancelled,draft"/>
<button name="set_cancel" string="Cancel" type="object" states="open,pending"/>
<field name="state" readonly="1" widget="statusbar"
statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>

View File

@ -108,18 +108,16 @@
<button name="invoice_corrected" states="invoice_except" string="Ignore Exception"/>
<button name="ship_recreate" states="shipping_except" string="Recreate Delivery Order"/>
<button name="ship_corrected" states="shipping_except" string="Ignore Exception"/>
<button name="action_quotation_send" string="Send by Mail" type="object" states="draft" class="oe_form_button_hi"/>
<button name="action_quotation_send" string="Send by Mail" type="object" states="sent"/>
<button name="action_quotation_send" string="Send by Mail" type="object" states="draft,sent" class="oe_form_button_active_flow"/>
<button name="manual_invoice" states="manual" string="Create Final Invoice" type="object"/>
<button name="print_quotation" string="Send by Post" type="object" states="draft" class="oe_form_button_hi"/>
<button name="print_quotation" string="Send by Post" type="object" states="sent"/>
<button name="print_quotation" string="Send by Post" type="object" states="draft,sent" class="oe_form_button_active_flow"/>
<button name="action_button_confirm" states="draft" string="Confirm" type="object"/>
<button name="action_button_confirm" states="sent" string="Confirm" class="oe_form_button_hi" type="object"/>
<button name="action_view_invoice" string="Open Invoice" type="object"
<button name="action_button_confirm" states="sent" string="Confirm" class="oe_form_button_active_flow" type="object"/>
<button name="action_view_invoice" string="Open Invoice" type="object" class="oe_form_button_active_flow"
attrs="{'invisible': ['|','|',('state', '!=','progress'), ('invoiced', '=', True),('order_policy','=','picking')]}"/>
<button name="action_view_delivery" string="Open Delivery Order" type="object"
<button name="action_view_delivery" string="Open Delivery Order" type="object" class="oe_form_button_active_flow"
attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}"/>
<button name="%(action_view_sale_advance_payment_inv)d" string="Advance Invoice" type="action" states="manual"/>
<button name="%(action_view_sale_advance_payment_inv)d" string="Advance Invoice" type="action" states="manual" class="oe_form_button_active_flow"/>
<button name="cancel" states="draft,sent" string="Cancel"/>
<button name="action_cancel" states="manual,progress" string="Cancel" type="object"/>
<button name="ship_cancel" states="shipping_except" string="Cancel"/>

View File

@ -83,7 +83,7 @@
<field name="arch" type="xml">
<form version="7.0">
<header>
<button name="action_validate" string="Approve" states="draft" type="object" />
<button name="action_validate" string="Approve" states="draft" type="object" class="oe_form_button_active_flow"/>
<field name="state" widget="statusbar"/>
</header>
<sheet string="Stock and Sales Forecast" layout="auto">