[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
This commit is contained in:
Martin Geubelle
2017-11-29 14:46:12 +01:00
parent cf32a1d202
commit 8d49a38f03
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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>