Odoo Help


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

on 7/11/16, 7:55 AM 408 views

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

I wan to know whether we can and how to?

Odoo Developer
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......)

thank you very much

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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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