[REM] Duplicate Menu for Website Menus
This commit is contained in:
parent
ee950e54a9
commit
a612251a13
@ -261,57 +261,5 @@
|
||||
action="website.ir_actions_server_website_dashboard"
|
||||
parent="website.menu_website_configuration"/>
|
||||
|
||||
<record id="website_menu_form" model="ir.ui.view">
|
||||
<field name="name">website.menu.form</field>
|
||||
<field name="model">website.menu</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Website menu">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="website_id"
|
||||
options="{'no_create': True}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="url"/>
|
||||
<field name="new_window"/>
|
||||
<field name="parent_id"/>
|
||||
<field name="menu_view"
|
||||
attrs="{'invisible':[('parent_id', '!=', False)]}"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="website.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,form</field>
|
||||
<field name="context">{'search_default_my_websites':1}</field>
|
||||
</record>
|
||||
|
||||
<record id="website.menu_tree" model="ir.ui.view">
|
||||
<field name="name">website.menu.tree</field>
|
||||
<field name="model">website.menu</field>
|
||||
<field name="field_parent">child_id</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Website menu">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="website_id" options="{'no_create': True}"/>
|
||||
<field name="name"/>
|
||||
<field name="url"/>
|
||||
<field name="new_window"/>
|
||||
<field name="parent_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_website_menu"
|
||||
name="Website Menu"
|
||||
sequence="1"
|
||||
action="website.action_website_menu"
|
||||
parent="website.menu_website_configuration"/>
|
||||
|
||||
</data>
|
||||
</flectra>
|
||||
|
Loading…
Reference in New Issue
Block a user