Skip to Content
Menu
This question has been flagged
1 Reply
6232 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
May 21
2824
5
Aug 24
307
0
Feb 24
28
0
Jan 22
1128
1
Sep 21
2654