Odoo Help


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.


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

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

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

I wan to know whether we can and how to?

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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