跳至内容
菜单
此问题已终结

Hi all,

I have a http route that render a template with some variables.

{"foo":"bar"}

In template I want to use variables that returned from controller as a javascript variable.

For example, I want to log foo

console.log(foo);


But I can not find where foo is

Please help me to use controller variables in javascript

形象
丢弃

<script>

var x_axis = <t t-esc="value_comes_from_controller"/>;

</script>

Reference: http://bit.ly/odoo-web-controller

相关帖文 回复 查看 活动
0
8月 23
194
1
6月 23
2909
1
2月 22
2882
1
11月 20
4932
0
8月 18
5848