Odoo Help


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.


Can I search on non-field data?

Kit Sunde
on 9/11/14, 5:08 PM 646 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--
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Systems Engineer + MBA

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

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)


Asked: 9/11/14, 5:08 PM
Seen: 646 times
Last updated: 3/16/15, 8:10 AM