summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJigar Amin - OpenERP <jam@tinyerp.com>2012-06-14 14:55:21 +0530
committerJigar Amin - OpenERP <jam@tinyerp.com>2012-06-14 14:55:21 +0530
commitb39a92e16cc294c24f59627c22cd47a5efda2f65 (patch)
treed613bbfbb6fea4195ef3fcee1025531f1a776479
parent7110b8b2fdc7c3a77da63c1378c58795a0e29b30 (diff)
parent22f1f9e40cfa6ead84b1c09593ae5b52bbd16af0 (diff)
[MERGE] lp:~openerp-commiter/openobject-addons/trunk-red-button-sale-aja
bzr revid: jam@tinyerp.com-20120614092521-r3p9515mlwmsvcvv
-rw-r--r--addons/account/account_invoice_view.xml9
-rw-r--r--addons/account_payment/account_payment_view.xml2
-rw-r--r--addons/account_voucher/account_voucher_pay_invoice.xml2
-rw-r--r--addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml8
-rw-r--r--addons/sale/sale_view.xml14
-rw-r--r--addons/stock_planning/stock_planning_view.xml2
6 files changed, 19 insertions, 18 deletions
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 833d3090abe..e54ceb90e0e 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -150,6 +150,7 @@
<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,paid' class="oe_form_button_return_flow"/>
+ <button name="%(action_account_invoice_refund)d" type='action' string='Ask Refund' states='open' class="oe_form_button_active_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" class="oe_form_button_return_flow"/>
<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."/>
@@ -274,11 +275,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')]}" class="oe_form_button_active_flow"/>
+ <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" class="oe_form_button_active_flow"/>
- <button name="invoice_proforma2" states="draft" string="PRO-FORMA" groups="account.group_proforma_invoices" class="oe_form_button_active_flow"/>
- <button name="%(action_account_invoice_refund)d" type='action' string='Refund Invoice' states='paid' class="oe_form_button_return_flow"/>
+ <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' 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" class="oe_form_button_return_flow"/>
<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."/>
diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml
index e0feb347309..b8cbdad6bc9 100644
--- a/addons/account_payment/account_payment_view.xml
+++ b/addons/account_payment/account_payment_view.xml
@@ -232,7 +232,7 @@
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_payment_order_search"/>
- <field name="help">A payment order is a payment request from your company to pay a supplier invoice or a customer credit note. Here you can register all payment orders that should be done, keep track of all payment orders and mention the invoice reference and the partner the payment should be done for.</field>
+ <field name="help">A payment order is a payment request from your company to pay a supplier invoice or a customer `credit note. Here you can register all payment orders that should be done, keep track of all payment orders and mention the invoice reference and the partner the payment should be done for.</field>
</record>
<menuitem action="action_payment_order_tree" id="menu_action_payment_order_form" parent="menu_main_payment" sequence="3"/>
diff --git a/addons/account_voucher/account_voucher_pay_invoice.xml b/addons/account_voucher/account_voucher_pay_invoice.xml
index d6bb55bdbec..0c2749aae01 100644
--- a/addons/account_voucher/account_voucher_pay_invoice.xml
+++ b/addons/account_voucher/account_voucher_pay_invoice.xml
@@ -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" class="oe_form_button_active_flow"/>
+ <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>
diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml
index c18ac4de667..44c97c1e77d 100644
--- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml
+++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml
@@ -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"}'/>
diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml
index b439c7ff4f0..16134b996df 100644
--- a/addons/sale/sale_view.xml
+++ b/addons/sale/sale_view.xml
@@ -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"/>
diff --git a/addons/stock_planning/stock_planning_view.xml b/addons/stock_planning/stock_planning_view.xml
index 0ae33cec3af..eee36b6d016 100644
--- a/addons/stock_planning/stock_planning_view.xml
+++ b/addons/stock_planning/stock_planning_view.xml
@@ -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">