Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7265 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 21
3709
5
ago 24
3365
0
feb 24
28
0
gen 22
2834
1
mar 25
4806