12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- website -->
- <record id="view_website_form_website_multi" model="ir.ui.view">
- <field name="name">website.form</field>
- <field name="model">website</field>
- <field name="inherit_id" ref="website.view_website_form"/>
- <field name="arch" type="xml">
- <xpath expr="//form" position="attributes">
- <attribute name="version">7.0</attribute>
- </xpath>
- <xpath expr="//header" position="replace"></xpath>
- <xpath expr="//field[@name='name']" position="after">
- <field name="menu_id"/>
- <field name="user_id" context="{ 'active_test' : False }" />
- </xpath>
- <xpath expr="//field[@name='default_lang_id']" position="attributes">
- <attribute name="required">True</attribute>
- </xpath>
- <xpath expr="//div[@name='other']" position="after">
- <div name="menu">
- <separator string="Menu"/>
- <group name="Menu">
- <button type="action" name="%(website.action_website_menu)d" string="Configure website menus" class="oe_link"/>
- </group>
- </div>
- </xpath>
- </field>
- </record>
- <record id="action_websites_configuration" model="ir.actions.act_window">
- <field name="name">Websites Settings</field>
- <field name="res_model">website</field>
- <field name="view_mode">tree,form</field>
- <field name="target">current</field>
- </record>
- <record id="website.menu_website_configuration" model="ir.ui.menu">
- <field name="name">Websites Settings</field>
- <field name="action" ref="website_multi.action_websites_configuration"/>
- </record>
- <!-- ir.ui.view -->
- <record id="view_view_form_website_multi" model="ir.ui.view">
- <field name="model">ir.ui.view</field>
- <field name="inherit_id" ref="base.view_view_form"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='name']" position="after">
- <field name="website_id"/>
- <field name="key"/>
- </xpath>
- </field>
- </record>
- <!-- website.menu -->
- <record id="menu_search" model="ir.ui.view">
- <field name="name">website.menu.search</field>
- <field name="model">website.menu</field>
- <field name="arch" type="xml">
- <search string="Search Menus">
- <field name="name"/>
- <field name="url"/>
- <!-- <field name="website_id"/> -->
- <group string="Group By">
- <filter string="name" domain="[]" context="{'group_by': 'name'}"/>
- <filter string="url" domain="[]" context="{'group_by': 'url'}"/>
- <!-- <filter string="website" name="my_websites" domain="[]" context="{'group_by': 'website_id'}"/> -->
- </group>
- </search>
- </field>
- </record>
- <record id="menu_tree_website_multi" model="ir.ui.view">
- <field name="name">Website Multi Website Menu Tree</field>
- <field name="model">website.menu</field>
- <field name="inherit_id" ref="website.menu_tree"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='name']" position="before">
- <field name="website_id"/>
- </xpath>
- </field>
- </record>
- <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="context">{'search_default_my_websites': 1}</field> -->
- </record>
- </data>
- </openerp>
|