summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Hoste <pko@odoo.com>2019-08-13 11:27:21 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-13 11:28:55 +0000
commitc52c8da4914da9e36e0518ce35ae02bf09206b1f (patch)
tree37cfba292d0a13a91c40446ea0b7ffdcfe0bc578
parent82d563b035cf53f238635f6e0dbf4513204b8007 (diff)
[IMP] crm: replace Won / Lost bootstrap badges by ribbon widgets
PURPOSE Have a nice ribbon widget to display state of records: part II SPECIFICATIONS Replace Won / Lost bootstrap badges by ribbon widgets in lead / opportunity form view. LINKS Task ID : 2032621 PR : #34662
-rw-r--r--addons/crm/views/crm_lead_views.xml10
1 files changed, 4 insertions, 6 deletions
diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml
index fb2c8958962..677da78d25e 100644
--- a/addons/crm/views/crm_lead_views.xml
+++ b/addons/crm/views/crm_lead_views.xml
@@ -66,11 +66,10 @@
attrs="{'invisible': ['&amp;', ('probability', '=', 0), ('active', '=', False)]}"/>
</header>
<sheet>
- <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
<field name="active" invisible="1"/>
<div class="oe_button_box" name="button_box"/>
- <div class="badge-pill badge-danger float-right" attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}">Lost</div>
- <div class="badge-pill badge-success float-right" attrs="{'invisible': [('probability', '&lt;', 100)]}">Won</div>
+ <widget name="web_ribbon" text="Lost" bg_color="bg-danger" attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}"/>
+ <widget name="web_ribbon" text="Won" attrs="{'invisible': [('probability', '&lt;', 100)]}" />
<div class="oe_title">
<label for="name" class="oe_edit_only" string="Lead"/>
<h1><field name="name" placeholder="Describe the lead..."/></h1>
@@ -517,7 +516,6 @@
attrs="{'invisible': [('active', '=', False)]}"/>
</header>
<sheet>
- <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
<field name="active" invisible="1"/>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" type="object"
@@ -530,8 +528,8 @@
</div>
</button>
</div>
- <div class="badge-pill badge-danger float-right" attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}">Lost</div>
- <div class="badge-pill badge-success float-right" attrs="{'invisible': [('probability', '&lt;', 100)]}">Won</div>
+ <widget name="web_ribbon" text="Lost" bg_color="bg-danger" attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}" />
+ <widget name="web_ribbon" text="Won" attrs="{'invisible': [('probability', '&lt;', 100)]}" />
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name" placeholder="e.g. Product Pricing"/></h1>