Skip to Content
Menu
Dette spørgsmål er blevet anmeldt

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

Avatar
Kassér

<script>

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

</script>

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

Related Posts Besvarelser Visninger Aktivitet
0
aug. 23
194
1
jun. 23
2866
1
feb. 22
2854
1
nov. 20
4922
0
aug. 18
5833