i have function in JS like this handler when click will call a method custom_search in py file
now i want to get that data and render in xml file. I try to this but it not work
<t t-name="systray_odoo_search.search_result">
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i have function in JS like this handler when click will call a method custom_search in py file
Hello
there are many ways you can do it. I'll show you one method to write value of a variable in js to xml template
you can define global variables in your init function.
init: function(parent,options){
this._super(parent,options);
this.var_name = 0create a div in xml template
<div class="some_class"/>
Edit it on button click, and write your value to div from js
$(".some_class").text(this.var_name);
Regards
MUHAMMAD IMRAN
Technical and Functional Consultant (ODOO)
Softtar Technologies Pvt. Ltd. Contact : Pakistan (+92)-3037701373
Address:
Allhafeez Shopping MallLahore
Pakistan (Branch Office)http://sofftar.comสร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
2
มิ.ย. 20
|
5065 | |||
|
2
ก.ค. 24
|
2035 | |||
|
2
มิ.ย. 23
|
43422 | |||
|
1
ธ.ค. 22
|
4228 | |||
|
2
ธ.ค. 22
|
5164 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.