İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
7288 Görünümler

Hello

We need to display in a wizard, a kanban view of model product.product. But we also need to display in this wizard the Odoo search bar, allowing the users to filter the products according to searching criteria.

It should be the similar to the popup that arises when users select the option “Search More…” on many2one fields. The only difference: Kanban view is showed instead of the List view. Selected product will be added to a one2many field of active model.

We couldn’t display this search bar so far. Has anyone faced something similar?

Please, if someone could help us, we would be grateful. Any clue that guides us will be welcome.

Thanks in advance.

Avatar
Vazgeç
En İyi Yanıt

Try to add serach_view_id to your action.

eg:

<field name="search_view_id" ref="your_id"/>

or you can connect your view with the defined action.

eg:

<record id="action_cancel_holidays_tree" model="ir.actions.act_window.view">
<field name="sequence" eval="2"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="cancel_holiday_tree"/>
<field name="act_window_id" ref="open_cancel_holidays"/>
</record>


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 21
3711
5
Ağu 24
3394
0
Şub 24
28
0
Oca 22
2846
1
Mar 25
4832