Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7260 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 21
3708
5
srp 24
3362
0
úno 24
28
0
led 22
2828
1
bře 25
4803