Odoo Help


How to search field many2one

on 10/14/14, 4:25 AM 444 views


How to search field many2one in produvt

my code :



<?xml version="1.0" encoding="UTF-8"?>
    <data noupdate="1">

        <record id="product_myform_search" model="ir.ui.view">
            <field name="name">product.myform.search</field>
            <field name="model">product.product</field>
            <field name="type">search</field>
            <field name="inherit_id" ref="product.product_search_form_view" />
            <field name="arch" type="xml">
                <search string="Product">
                    <field name="famille" string="famille"   filter_domain="[('famille','ilike',self)]"/> />
                    <field name='default_code' string="Réference interne"  filter_domain="['|',('default_code','ilike',self),('default_code','ilike',self)]"/>





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 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: 10/14/14, 4:25 AM
Seen: 444 times
Last updated: 3/16/15, 8:10 AM