Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2920 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
9383
1
maj 25
1580
0
sty 24
2195
1
lut 22
24597
5
gru 21
17208