Hi,
I need to render a xml template from javascript in odoo 12, can i anyone help me out this.
Thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I need to render a xml template from javascript in odoo 12, can i anyone help me out this.
Thanks in advance
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
You can check this addon, here template is rendered from JS explicitly. https://www.odoo.com/apps/modules/12.0/hr_dashboard/
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
2
ago 24
|
6361 | ||
|
1
ott 22
|
24099 | ||
|
2
set 21
|
12786 | ||
|
1
ago 21
|
8333 | ||
|
1
lug 21
|
4336 |