Theme tutorial v12 example raising an error on URL http://localhost:8071/services
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- === Services Page === -->
<template id="services_page_template">
<t t-call="website.layout">
<div id="wrap">
<div class="container">
<h1>Our Services</h1>
<ul class="services">
<li>Cloud Hosting</li>
<li>Support</li>
<li>Unlimited space</li>
</ul>
<!-- === Snippets' area === -->
<div class="oe_structure" />
</div>
</div>
</t>
</template>
<record id="services_page" model="website.page">
<field name="name">Services page</field>
<field name="website_published">True</field>
<field name="url">/services</field>
<field name="view_id" ref="services_page_template"/>
</record>
</odoo>
Error:
node = et.find(exception.path.replace('/templates/t/', './'))
AttributeError: 'NoneType' object has no attribute 'replace' - - -
But when we create a menu it created sucessfully the menu .By using theme tutorial example code.
But when we clicks the menu: service in navigation bar It show internal error.
<record id="services_page_link" model="website.menu">
<field name="name">Services</field>
<field name="page_id" ref="services_page"/>
<field name="parent_id" ref="website.main_menu" />
<field name="sequence" type="int">99</field>
</record>
Same here also how to create a separate menu for multiple website via code.Any idea?