İçereği Atla
Menü
Bu soru işaretlendi
5454 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ağu 16
11191
4
Ara 23
19179
0
Nis 21
2238
1
Tem 25
2811
2
May 24
3747