Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2414 Widoki

I need to remove kanban view completely in sales. How could i inherit it in xpath and remove it.   Could anyone please help me! 

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can inherit the the corresponding action and remove the kanban from the view mode.

To Inherit an existing action in odoo, see: https://www.youtube.com/watch?v=8aGOHkee7i4

Thanks

Awatar
Odrzuć
Autor

Thanks, i tried it. But it does not work

can you show the code that you have tried

Autor

<record id="sale.action_orders" model="ir.actions.act_window">

<field name="name">Sales Orders</field>

<field name="view_mode">tree,form,calendar,pivot,graph,activity</field>

</record>

Autor

I removed kanban in view mode. It does not work @niyas

Can you open the corresponding action from the ui, and confirm it still have the kanban in the view mode or not.

I have tried this from ui and get succeeded

Autor

Yeah! You are right. Actually , In sale order form (v14),It shows the kanban view and i could see kanban icon. But in edit action, It does not have kanban in view mode.

Autor

Thanks! It works for all forms except sale order.

Najlepsza odpowiedź

On the sales orders page, you want to:

1. enable debug

2. open developer tools > edit action

3. remove at the bottom the record with View Type='Kanban' and View='sale.order.kanban'

4. refresh page

Awatar
Odrzuć
Autor

Thanks, but i need to do it from back end.

Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
2675
1
lip 25
1059
1
sie 25
1151
0
maj 25
1501
2
kwi 25
3656