Odoo Help

Welcome!

This community 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.

0

Add filter to Oportunities

By
Juan
on 5/16/16, 7:48 AM 203 views

Hi, I want to add a filter to search in the notes tab. I'm trying with this but i'm missing the domain so the user can put the string to search.


<record id="inherit_view_crm_case_opportunities_filter" model="ir.ui.view">
    <field name="name">CRM - opportunities Search </field>
    <field name="model">crm.lead</field>
    <field name="inherit_id"ref="crm.view_crm_case_opportunities_filter" />
    <field name="arch" type="xml">
        <xpath expr="filter[@string='Description']" position="after">
            <filter string="Notas" domain="[('description', '=',?)]" />
        </xpath>
    </field>
</record>

Thanks.


0
PradaOverflow
On 5/16/16, 8:48 AM

your code seems good ,but you should explain more , what exactly do you want to filter ?

<filter string="Notas" domain="[('description', '=',?)]" /> ??

What i want is to load as default filter a search in the internal notes field, I dont know if that field is description or another and how to do the filter without a default value.

Juan
on 5/17/16, 5:21 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/16/16, 7:48 AM
Seen: 203 times
Last updated: 5/16/16, 8:48 AM