Odoo Help


How to add additional filter to default crm.lead list view?

David Dean
on 9/23/14, 4:56 AM 2,856 views

I'm using Odoo v8. In the leads list view I'd like to add a second filter by default so the list shows all leads which are either Unassigned (default Odoo) OR assigned to current user.

Can someone paste a quick example of a custom module to do this?

I've done lots of Googling and reviewing the documentation but it's not clear to me how I would even start with this modification.



Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 9/23/14, 5:59 AM

check the crm_partner_assign module available in Addons

        <record model="ir.ui.view" id="crm_opportunity_partner_filter">
            <field name="name">crm.opportunity.partner.filter.assigned</field>
            <field name="model">crm.lead</field>
            <field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/>
            <field name="arch" type="xml">
                <filter string="Team" position="after">
                    <filter string="Assigned Partner" icon="terp-personal" domain="[]" context="{'group_by':'partner_assigned_id'}"/>
                <field name="partner_id" position="after">

                    <field name="partner_assigned_id"/>

Manos A.C.
On 2/26/15, 3:02 AM

Alternatively i guess you can use the GUI interface and interact with custom filters,

in order to disable the default filter in the search field just click on the arrow that is directed down next to the "x"

click on the " Unassigned " in order to disable the selection ( in the " Filters " section )

click on the down facing arrow on " save current filter " than choose the " myleads " or any other filter that you would like to use

Name your custom filter then click on " use by default " and finaly save it  !

Here you go ! without any scripting done ! :)

Yep a simple GUI solution that needs no programming is always nice! Good suggestion :)

on 2/26/15, 3:33 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/23/14, 4:56 AM
Seen: 2856 times
Last updated: 3/16/15, 8:10 AM