Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4941 Weergaven

Hi,

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?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
aug. 16
10583
4
dec. 23
18427
0
apr. 21
1823
1
jul. 25
2239
2
mei 24
2988