Odoo Help

0

Can I search on non-field data?

v8
By
Kit Sunde
on 9/11/14, 5:08 PM 819 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"/>
    </search>
  </field>
</record>

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

1

Grover Menacho

--Grover Menacho--
2553
| 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

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.

Register

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)

Stats

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