Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2904 Prikazi

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?

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
3
jul. 25
9354
1
maj 25
1547
0
jan. 24
2147
1
feb. 22
24527
5
dec. 21
17154