[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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user