تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
11473 أدوات العرض

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

I wan to know whether we can and how to?

الصورة الرمزية
إهمال
أفضل إجابة
<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

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 24
4784
1
أكتوبر 20
4924
2
يونيو 20
4672
5
ديسمبر 17
5987
3
يناير 24
17012