Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to define and use javascript's function in xml file?

By
vx2008
on 7/11/16, 7:55 AM 336 views

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

I wan to know whether we can and how to?

0
shameem@axon
On 7/26/16, 7:58 AM
<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>

thank you very much

vx2008
on 7/27/16, 9:01 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/11/16, 7:55 AM
Seen: 336 times
Last updated: 7/27/16, 9:00 AM