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

How custom search propositions

By
Anne-Sylvie Burri
on 11/12/13, 4:17 AM 582 views

Hi,

My problem is that I can not run my code ... I want to instead of "TAG" it "CITY"

    <record model="ir.ui.view" id="res_partner_search">
        <field name="name">partner.search</field>
        <field name="model">res.partner</field>
        <field name="arch" type="xml">
            <search string="city">
                <field name="name"/>
                <field name="city"/>
                <filter  domain="[('city', 'ilike', self)]" />
            </search>
        </field>
    </record>
    <record id="action_res_partner" model="ir.actions.act_window">
        <field name="name">Ville</field>
        <field name="res_model">res.partner</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="search_view_id" ref="res_partner_search"/>
    </record>

Do you have any idea?

Thanks

Where are you adding this code? Your own module?

GH Mediacloud, Grover Menacho
on 11/12/13, 9:56 AM

Okay, and you are trying to.... Inherit? Or create a new object and view?

GH Mediacloud, Grover Menacho
on 11/12/13, 12:07 PM

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

0 follower(s)

Stats

Asked: 11/12/13, 4:17 AM
Seen: 582 times
Last updated: 3/16/15, 8:10 AM