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 to search field many2one

By
oussama
on 10/14/14, 4:25 AM 406 views

Hi

How to search field many2one in produvt

my code :

 

 

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <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)]"/>
                    
                </search>

            </field>
        </record>

    </data>
</openerp>

 

Thanks
 

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