[FIX] marketing_campaign: traceback on install 9.0

When installed, marketing_campaign shows the root "Marketing" menu by
default but this menu is not an action and just contain a
"Configuration" submenu without action as well.

Thus in community we got on a page without content, and on enterprise we
got a JS error.

note: only happen in 9.0

fixes #21898
opw-1802936
closes #24026
This commit is contained in:
Nicolas Lempereur
2018-04-04 09:59:37 +02:00
parent d768964a37
commit cbff414cea
@@ -8,9 +8,10 @@
<field name="params" eval="{'menu_id': ref('base.marketing_menu')}"/>
</record>
<!-- disabled since marketing menu is empty by default -->
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_client_marketing_menu"/>
<field name="state">open</field>
<field name="state">done</field>
</record>
</data>