Odoo Help


4 Answers

Akhil P Sivan India

--Akhil P Sivan--

| 6 5 9
Kochi, India
--Akhil P Sivan--

Odoo Developer

email-id : akhilpsivan01@gmail.com

Akhil P Sivan India
11/12/15, 8:21 AM


You can put the following code in your xml file:

<record id="multiprice_search_form_view_inherited" model="ir.ui.view">
<field name="name">multiprice.search.form.inherited</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product_multiprices.multiprice_search_form_view"/>
<field name="arch" type="xml">

<field name="name" position="after">
<field name="name" string="Your Search Term" filter_domain="[('your_field','ilike',self)]"/>


Here, your_field is the field you added in product.template model. Then it should appear in "Search more" as you expected in quotation or sale order lines

If you want to do this from front end, you may do the following:

Create a new view with following data and rest keep as default:

View Name: product.template.search.inherited

View Type: Search

Object: product.template

Inherited View: product.template.search

View inheritance mode: Extension View

Then under Architecture tab, put the following code:

<?xml version="1.0"?>
<field name="name" position="after">

<field name="name" string="Your Search Term" filter_domain="[('your_field','ilike',self)]"/>

Atul Arvind India

--Atul Arvind--
| 4 3 7
Vadodara, India
--Atul Arvind--


I am Odoo Enthusiast/Developer from Vadodara, India. Working with Odoo from v5 to v11 and other opensource technology since 5+ years. Having Strong Expertise in

Odoo Development

Odoo Customization

Odoo Training

Odoo Integration

Server Administration

Odoo Migration


Here is my StackOverflow profile.  you can also find me on LinkedIn.

Contact: atul.surficle@gmail.com.

Atul Arvind India
1/1/14, 4:14 PM

Override the name_search method in case you need to extend the search for m2o type field.

You need to over ride the name_search method of product.product model.

  1. Inherit the model product.product
  2. Override the name_search method as you want.

Note: name_search method will return list with id and name like [(id, 'name')]

1 Comment
Limitless Virtual Enterprise, Jessica Dowd South Africa
11/12/15, 4:18 AM

How can I change it in the view? Do you know what the view's name is?

Ask a Question
Keep Informed
0 follower(s)
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