Skip to content
Snippets Groups Projects
Commit 8d49a38f authored by Martin Geubelle's avatar Martin Geubelle
Browse files

[FIX] *: replace incorrect `view_mode`

Some actions were using `list` as value for the attribute `view_mode`.
This value is not valid, the list view is named `tree` server-side.

This was causing issues when setting `view_ids` (`ir.actions.act_window.view`)
on the action because `tree` and `list` were not matching correctly.

Closes #21056
parent cf32a1d2
No related branches found
No related tags found
No related merge requests found
......@@ -374,7 +374,7 @@
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.production</field>
<field name="view_type">form</field>
<field name="view_mode">graph,pivot,list,form</field>
<field name="view_mode">graph,pivot,tree,form</field>
</record>
<menuitem id="menu_mrp_workorder_todo"
......
......@@ -105,7 +105,7 @@
<field name="res_model">stock.picking.type</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">list,form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to define a new transfer.
......
......@@ -165,7 +165,7 @@
<record id="action_website_menu" model="ir.actions.act_window">
<field name="name">Website Menu</field>
<field name="res_model">website.menu</field>
<field name="view_mode">list</field>
<field name="view_mode">tree</field>
<field name="context">{'search_default_my_websites':1}</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment