add event layout for example with xpath

bzr revid: mat@openerp.com-20130701112013-fozyneayrte7jo31
This commit is contained in:
Martin Trigaux 2013-07-01 13:20:13 +02:00
parent 1bee14a0c3
commit b5f7ed13ff
1 changed files with 15 additions and 0 deletions

View File

@ -129,6 +129,21 @@
</field>
</record>
<record id="layout-event" model="ir.ui.view">
<field name="name">event</field>
<field name="inherit_id" ref="layout"/>
<field name="arch" type="xml">
<data>
<xpath expr="//ul[@class='oe_website_nav span8 nav nav-pills']" position="inside">
<li>Event</li>
</xpath>
<xpath expr="//footer[@class='oe_website_footer']" position="inside">
<div>Our last events</div>
</xpath>
</data>
</field>
</record>
<!--
# WIIIP !!
module_template = Template("""