Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
14492 Vizualizări

Hi,

I need to render a xml template from javascript in odoo 12, can i anyone help me out this.

Thanks in advance

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

We can render a template from JavaScript using Qweb.render, try the code below

var core = require('web.core');
var QWeb = core.qweb;
var rendered_html = QWeb.render('template_name',{ key: value });

Hope it helps

Imagine profil
Abandonează
Cel mai bun răspuns

You can check this addon, here template is rendered from JS explicitly. https://www.odoo.com/apps/modules/12.0/hr_dashboard/

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 24
6413
1
oct. 22
24145
2
sept. 21
12830
1
aug. 21
8370
1
iul. 21
4377