Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
11057 Visualizações

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

I wan to know whether we can and how to?

Avatar
Cancelar
Melhor resposta
<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
Cancelar
Autor

thank you very much

Publicações relacionadas Respostas Visualizações Atividade
1
dez. 24
4272
1
out. 20
4524
2
jun. 20
4293
5
dez. 17
5663
3
jan. 24
16633