[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
This commit is contained in:
committed by
Thibault Delavallée
parent
82d563b035
commit
c52c8da491
@@ -66,11 +66,10 @@
|
||||
attrs="{'invisible': ['&', ('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', '>', 0), ('active', '=', True)]}">Lost</div>
|
||||
<div class="badge-pill badge-success float-right" attrs="{'invisible': [('probability', '<', 100)]}">Won</div>
|
||||
<widget name="web_ribbon" text="Lost" bg_color="bg-danger" attrs="{'invisible': ['|', ('probability', '>', 0), ('active', '=', True)]}"/>
|
||||
<widget name="web_ribbon" text="Won" attrs="{'invisible': [('probability', '<', 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', '>', 0), ('active', '=', True)]}">Lost</div>
|
||||
<div class="badge-pill badge-success float-right" attrs="{'invisible': [('probability', '<', 100)]}">Won</div>
|
||||
<widget name="web_ribbon" text="Lost" bg_color="bg-danger" attrs="{'invisible': ['|', ('probability', '>', 0), ('active', '=', True)]}" />
|
||||
<widget name="web_ribbon" text="Won" attrs="{'invisible': [('probability', '<', 100)]}" />
|
||||
<div class="oe_title">
|
||||
<label for="name" class="oe_edit_only"/>
|
||||
<h1><field name="name" placeholder="e.g. Product Pricing"/></h1>
|
||||
|
||||
Reference in New Issue
Block a user