I want to show the green ribbon for won opportunities in the crm for kanban view
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hello HI,
To get the green ribbon for won opportunities in crm kanban view you need to inherit kanban view and add code for visibility of that green ribbon as below.
Please find code in Comment.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
<record model="ir.ui.view" id="crm_inherited_kanban">
<field name="name">crm.lead.kanban</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('ribbon-top-right')]" position="after">
<div class="ribbon ribbon-top-right"
attrs="{'invisible': [('probability', '<', 100)]}">
<span class="bg-success">Win</span>
</div>
</xpath>
</field>
</record>