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/
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 8 24
|
6414 | ||
|
1
thg 10 22
|
24145 | ||
|
2
thg 9 21
|
12830 | ||
|
1
thg 8 21
|
8370 | ||
|
1
thg 7 21
|
4378 |