Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
When I replace custom footer and intall website blog that module try to find a div inside the footer which I don't want to use:.
The element '<xpath expr="//div[@id='info']/ul">'coulnd't be found in father's view
Context Error :
Vista `Footer News Blog Link`
[view_id: 1239, xml_id: n/a, model: n/a, parent_id: 734]" while parsing None:13, near
<data inherit_id="website.footer_default" name="Footer News Blog Link">
<xpath expr="//div[@id='info']/ul" position="inside">
<template id="theme_custom_footer" name="Custom Footer" inherit_id="website.footer_default">
<xpath expr="//div[@class='container hidden-print']" position="replace">
<div class="container_footer" style="background-color: #d0d0d1;border-top: 4px solid #428bca;">
When your inheritance of template website.footer_default is changed entire structure of the DIV with class "container hidden-print". But same template is inherited by website_blog module and put some information inside "div[@id='info']/ul". So, website_blog do not get the particular XPATH inside parent view due to your inheritance and replace entire DIV.
So, you have to take care while replace inside any template. To avoid such kind of error you have to inherit templates and replace its content which are dependent on the main template.
Update : Another solution : You just need to put website_blog module inside your 'depends' list of __openerp__.py file.
I hope it is clear to you. If you have any question please write it down.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/18/15, 2:47 PM|
|Seen: 794 times|
|Last updated: 8/20/15, 12:52 AM|