Odoo Help


This community 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.


Odoo Template inheritance with new model

Hasan Baidoun
on 6/1/15, 10:27 AM 819 views


I am developing Odoo 8.0

I am trying to customize part of the web client interface using Templates and xpath. For example:

<template id="web_custom_layout" inherit_id="web.layout" name="web_custom layout">
<xpath t-if expr="some_path" position="replace">
<some_tags />
</xpath> </template>

In my case, the tags I want to insert in the inherited template "web.layout" rely on data in the Settings of the system. To do that, the controller rendering the template needs to pass the data to template.

Since the controller that renders web.layout is out of my reach, is there a way to extend it? or is there a way to read data from the system directly from the template markup?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 6/1/15, 10:27 AM
Seen: 819 times
Last updated: 6/1/15, 10:28 AM