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
7261 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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>


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 21
3708
5
sie 24
3362
0
lut 24
28
0
sty 22
2828
1
mar 25
4803