diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-07-26 15:13:28 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-07-26 15:13:28 +0200 |
| commit | fdb58fc77c12a01b36f4556c99b3d5f0bed79f30 (patch) | |
| tree | eee215e5a4f10e4e71139fb32560a2e728a216f9 | |
| parent | 8d4b97ef3c1495502a8ba55ab867dfe0878fcf7b (diff) | |
[IMP] all: remove reference to statusbar_color
Linked to #5987
| -rw-r--r-- | addons/account/views/account_invoice_view.xml | 4 | ||||
| -rw-r--r-- | addons/account_voucher/voucher_sales_purchase_view.xml | 4 | ||||
| -rw-r--r-- | addons/hr_expense/views/hr_expense_views.xml | 4 | ||||
| -rw-r--r-- | addons/hr_holidays/views/hr_holidays_views.xml | 2 | ||||
| -rw-r--r-- | addons/marketing_campaign/marketing_campaign_view.xml | 2 | ||||
| -rw-r--r-- | addons/mrp/views/mrp_production_views.xml | 2 | ||||
| -rw-r--r-- | addons/mrp/views/mrp_unbuild_views.xml | 2 | ||||
| -rw-r--r-- | addons/point_of_sale/views/pos_order_view.xml | 2 | ||||
| -rw-r--r-- | addons/stock/views/stock_move_views.xml | 2 | ||||
| -rw-r--r-- | addons/stock/views/stock_picking_views.xml | 2 | ||||
| -rw-r--r-- | addons/stock/views/stock_scrap_views.xml | 2 | ||||
| -rw-r--r-- | openerp/addons/base/ir/ir_actions.xml | 2 | ||||
| -rw-r--r-- | openerp/addons/base/rng/view.rng | 1 |
13 files changed, 15 insertions, 16 deletions
diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index 1c7971edec7..bd3796ce312 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -222,7 +222,7 @@ <button name="%(action_account_invoice_refund)d" type='action' string='Ask Refund' groups="account.group_account_invoice" attrs="{'invisible': ['|',('type', '=', 'in_refund'),('state','not in',('open','paid'))]}"/> <button name="invoice_cancel" states="draft,proforma2" string="Cancel Bill" groups="account.group_account_invoice"/> <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" groups="account.group_account_invoice"/> - <field name="state" widget="statusbar" statusbar_visible="draft,open,paid" statusbar_colors='{"proforma":"blue","proforma2":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,open,paid" /> </header> <div class="alert alert-info" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('has_outstanding','=',False)]}"> You have <bold><a class="alert-link" href="#outstanding" role="button">outstanding debits</a></bold> for this supplier. You can allocate them to mark this bill as paid. @@ -359,7 +359,7 @@ <button name="%(action_account_invoice_refund)d" type='action' string='Refund Invoice' groups="base.group_user" attrs="{'invisible': ['|',('type', '=', 'out_refund'), ('state', 'not in', ('open','proforma2','paid'))]}"/> <button name="invoice_cancel" states="draft,proforma2,open" string="Cancel Invoice" groups="base.group_no_one"/> <button name="action_cancel_draft" states="cancel" string="Reset to Draft" type="object" groups="base.group_user"/> - <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,open,paid" statusbar_colors='{"proforma":"blue","proforma2":"blue"}'/> + <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,open,paid"/> </header> <div class="alert alert-info" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('has_outstanding','=',False)]}"> You have <bold><a class="alert-link" href="#outstanding" role="button">outstanding payments</a></bold> for this customer. You can allocate them to mark this invoice as paid. diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml index de29d3dc9ca..c84b5f83081 100644 --- a/addons/account_voucher/voucher_sales_purchase_view.xml +++ b/addons/account_voucher/voucher_sales_purchase_view.xml @@ -53,7 +53,7 @@ <button name="cancel_voucher" string="Cancel Receipt" type="object" states="draft,proforma"/> <button name="cancel_voucher" string="Cancel Receipt" type="object" states="posted" confirm="Are you sure you want to cancel this receipt?"/> <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft"/> - <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,posted"/> </header> <sheet string="Sales Receipt"> <label for="number" string="Sales Receipt"/> @@ -166,7 +166,7 @@ <button name="cancel_voucher" string="Cancel" type="object" states="draft,proforma" /> <button name="cancel_voucher" string="Cancel" type="object" states="posted" confirm="Are you sure you want to cancel this receipt?"/> <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft"/> - <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,posted"/> </header> <sheet string="Vendor Voucher"> <label for="number" string="Purchase Receipt"/> diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index 830e87fb3a7..80eb63eac85 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -28,7 +28,7 @@ <form string="Expenses"> <header> <button name="submit_expenses" states="draft" string="Submit to Manager" type="object" class="oe_highlight o_expense_submit"/> - <field name="state" widget="statusbar" statusbar_visible="draft,reported,done" statusbar_colors='{"reported":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,reported,done"/> <button name="view_sheet" type="object" string="View Report" class="oe_highlight" attrs="{'invisible': [('state', '=','draft')]}"/> </header> <sheet> @@ -432,7 +432,7 @@ <button name="reset_expense_sheets" states="cancel" string="Resubmit" type="object"/> <button name="%(hr_expense.hr_expense_refuse_wizard_action)d" states="submit" string="Refuse" type="action" groups="base.group_hr_user" /> <button name="%(hr_expense.hr_expense_refuse_wizard_action)d" states="approve" string="Refuse" type="action" groups="account.group_account_user"/> - <field name="state" widget="statusbar" statusbar_visible="draft,submit,approve,post,done" statusbar_colors='{"submit":"blue","cancel":"red"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,submit,approve,post,done"/> </header> <sheet> <div class="oe_button_box"> diff --git a/addons/hr_holidays/views/hr_holidays_views.xml b/addons/hr_holidays/views/hr_holidays_views.xml index b4f6f65bb5f..d47eba6d7c1 100644 --- a/addons/hr_holidays/views/hr_holidays_views.xml +++ b/addons/hr_holidays/views/hr_holidays_views.xml @@ -88,7 +88,7 @@ <button string="Refuse" name="refuse" states="confirm,validate,validate1" type="workflow" groups="base.group_hr_user"/> <button string="Reset to Draft" name="reset" type="workflow" attrs="{'invisible': ['|', ('can_reset', '=', False), ('state', 'not in', ['confirm', 'refuse'])]}"/> - <field name="state" widget="statusbar" statusbar_visible="draft,confirm,validate" statusbar_colors='{"confirm":"blue","validate1":"blue","refuse":"red"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,confirm,validate"/> </header> <sheet> <div class="oe_title"> diff --git a/addons/marketing_campaign/marketing_campaign_view.xml b/addons/marketing_campaign/marketing_campaign_view.xml index 6cb8c03a12e..1eb6572e23a 100644 --- a/addons/marketing_campaign/marketing_campaign_view.xml +++ b/addons/marketing_campaign/marketing_campaign_view.xml @@ -387,7 +387,7 @@ <button string="Process" states="todo" name="process" type="object"/> <button string="Reset" states="exception,cancelled" name="button_draft" type="object"/> <button string="Cancel Workitem" states="todo,exception" name="button_cancel" type="object"/> - <field name="state" readonly="True" widget="statusbar" statusbar_visible="todo,done" statusbar_colors='{"exception":"red"}'/> + <field name="state" readonly="True" widget="statusbar" statusbar_visible="todo,done"/> <button string="Preview" states="todo" name="preview" icon="fa-search-plus fa-lg text-primary" type="object"/> </header> <sheet> diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index fb7ba53a845..c69d1974d1d 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -55,7 +55,7 @@ <button name="button_scrap" type="object" string="Scrap" attrs="{'invisible': [('state', 'in', ('cancel'))]}"/> <button name="button_unreserve" type="object" string="Unreserve" attrs="{'invisible': ['|', ('state', 'in', ['done', 'cancel']), ('availability', 'in', ['none', 'waiting'])]}"/> <span class="label label-danger" attrs="{'invisible': ['|', ('availability', 'in', ('assigned', 'none')), ('state', 'not in', ('confirmed','progress'))]}">Raw materials not available!</span> - <field name="state" widget="statusbar" statusbar_visible="confirmed,progress,done" statusbar_colors='{"confirmed":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="confirmed,progress,done"/> </header> <sheet> <field name="post_visible" invisible="1"/> diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml index da790faa50b..6769ddca8d4 100644 --- a/addons/mrp/views/mrp_unbuild_views.xml +++ b/addons/mrp/views/mrp_unbuild_views.xml @@ -47,7 +47,7 @@ <form string="Unbuild Orders"> <header> <button name="action_unbuild" string="Unbuild" type="object" states="draft" class="oe_highlight"/> - <field name="state" widget="statusbar" statusbar_visible="draft,done" statusbar_colors="{"draft":"blue"}"/> + <field name="state" widget="statusbar" statusbar_visible="draft,done"/> </header> <sheet> <div class="oe_button_box" name="button_box"> diff --git a/addons/point_of_sale/views/pos_order_view.xml b/addons/point_of_sale/views/pos_order_view.xml index 07aa8d8cc6a..77b0c33642c 100644 --- a/addons/point_of_sale/views/pos_order_view.xml +++ b/addons/point_of_sale/views/pos_order_view.xml @@ -10,7 +10,7 @@ <button name="action_invoice" string="Invoice" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}"/> <button name="refund" string="Return Products" type="object" attrs="{'invisible':[('state','=','draft')]}"/> - <field name="state" widget="statusbar" statusbar_visible="draft,paid,done" statusbar_colors='{"cancel":"red"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,paid,done" /> </header> <sheet> <div class="oe_button_box" name="button_box"> diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index 4621cd07c65..a49dc87dd7c 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -100,7 +100,7 @@ <field name="arch" type="xml"> <form string="Stock Moves"> <header> - <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"waiting":"blue","confirmed":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" /> </header> <sheet> <group> diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 46ba9f30d61..03f2689d031 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -213,7 +213,7 @@ string="Reset Operations" type="object"/> <field name="launch_pack_operations" invisible="1"/> <button name="button_scrap" type="object" string="Scrap" attrs="{'invisible': ['|', ('state', 'in', ('draft', 'cancel')), '&', ('picking_type_code', '=', 'incoming'), ('state', '!=', 'done')]}"/> - <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,partially_available,assigned,done" statusbar_colors='{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,partially_available,assigned,done" /> </header> <sheet> <div class="oe_button_box" name="button_box"> diff --git a/addons/stock/views/stock_scrap_views.xml b/addons/stock/views/stock_scrap_views.xml index f834acb7b71..b8bd7907442 100644 --- a/addons/stock/views/stock_scrap_views.xml +++ b/addons/stock/views/stock_scrap_views.xml @@ -25,7 +25,7 @@ <field name="arch" type="xml"> <form string="Scrap"> <header> - <field name="state" widget="statusbar" statusbar_visible="draft,done" statusbar_colors="{"done":"blue"}"/> + <field name="state" widget="statusbar" statusbar_visible="draft,done" /> </header> <sheet> <div class="oe_button_box" name="button_box"> diff --git a/openerp/addons/base/ir/ir_actions.xml b/openerp/addons/base/ir/ir_actions.xml index 675272e6be3..fcdb91bff5f 100644 --- a/openerp/addons/base/ir/ir_actions.xml +++ b/openerp/addons/base/ir/ir_actions.xml @@ -523,7 +523,7 @@ <button name="action_open" states="done" string="Set as Todo" type="object" icon="fa-exchange" class="oe_highlight"/> - <field name="state" widget="statusbar" statusbar_visible="open,done" nolabel="1" readonly="1" statusbar_colors='{"open":"red","done":"blue"}'/> + <field name="state" widget="statusbar" statusbar_visible="open,done" nolabel="1" readonly="1" /> </header> <sheet> <group col="4"> diff --git a/openerp/addons/base/rng/view.rng b/openerp/addons/base/rng/view.rng index 47414816afa..3276164b871 100644 --- a/openerp/addons/base/rng/view.rng +++ b/openerp/addons/base/rng/view.rng @@ -574,7 +574,6 @@ <rng:optional><rng:attribute name="default_focus"/></rng:optional> <rng:optional><rng:attribute name="filters"/></rng:optional> <rng:optional><rng:attribute name="statusbar_visible"/></rng:optional> - <rng:optional><rng:attribute name="statusbar_colors"/></rng:optional> <rng:optional><rng:attribute name="can_create" /></rng:optional> <rng:optional><rng:attribute name="can_write" /></rng:optional> <rng:optional><rng:attribute name="interval" /></rng:optional> |
