Skip to Content
Menu
This question has been flagged
1 Reply
1693 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.


Avatar
Discard
Best Answer

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

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

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.