summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>2012-06-13 17:57:08 +0530
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>2012-06-13 17:57:08 +0530
commitb0c53941237df264476939ccabc6b7060bae0f0b (patch)
tree41adb1f82922677f5da1b7b21ac83e5b3600f675
parent11edb7d5a126f16d2ddc2575c2fc78ba3166133e (diff)
[IMP] account: set ask refund button in grey color.
bzr revid: tpa@tinyerp.com-20120613122708-pmwxi5fqn8dq6vb2
-rw-r--r--addons/account/account_invoice_view.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 2c4bf260c8a..109e5506ea6 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -149,8 +149,7 @@
<form version="7.0">
<header>
<button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_form_button_active_flow"/>
- <button name="%(action_account_invoice_refund)d" type='action' string='Ask Refund' states='open' class="oe_form_button_active_flow"/>
- <button name="%(action_account_invoice_refund)d" type='action' string='Ask Refund' states='paid' class="oe_form_button_return_flow"/>
+ <button name="%(action_account_invoice_refund)d" type='action' string='Ask Refund' states='open,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="Set 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."/>