Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
11063 Vistas

It seems that we can't define javascript function on xml file;

I wan to know whether we can and how to?

Avatar
Descartar
Mejor respuesta
<template id="assets_backend" inherit_id="web.assets_backend">
     <xpath expr="." position="inside">
         <script type="text/javascript">
                 function your_function(args......)
                 {
                             //statements
                  }
         </script>
       </xpath>
 </template>
Avatar
Descartar
Autor

thank you very much

Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 24
4274
1
oct 20
4526
2
jun 20
4293
5
dic 17
5666
3
ene 24
16636