Odoo Help


Can I search on non-field data?

Kit Sunde
on 9/11/14, 5:08 PM 984 views

Currently my search view looks something like this:

<record id="view_email_scheduled_search" model="ir.ui.view">
  <field name="name">sale.order_email.scheduled_email.search</field>
  <field name="model">sale.order_email.scheduled_email</field>
  <field name="arch" type="xml">
    <search string="Templates">
      <field name="name"/>
      <field name="subject"/>
      <field name="order_id"/>
      <field name="order_line_id"/>

Is it possible to add a search option that I can do with code?


Grover Menacho

--Grover Menacho--
WebVision Enterprise Systems
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Odoo Developer

Grover Menacho
On 9/11/14, 6:54 PM

You can create a fields.dummy to create a dummy search field. And then you can override your object search function to detect this field and then you can create your own search functionality

I ended up with a fields.function, but this is a perfectly good answer too.

Kit Sunde
on 9/12/14, 4:13 AM

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: 9/11/14, 5:08 PM
Seen: 984 times
Last updated: 3/16/15, 8:10 AM