Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use javascript function in Odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 720
    Comment on it

    In javacsript function first we have to move on src file and open the .js file and go one step further by creating a javascript file, name it tutorial_editor.js and place it into the static folder.
    For example you can see below.

    (function() {
        'use strict';
        var website = openerp.website;
        website.openerp_website = {};
    })()
    (function() {
        'use strict';
        var website = openerp.website;
        website.openerp_website = {};
    
        website.snippet.options.snippet_testimonial_options = website.snippet.Option.extend({
            on_focus: function() {
                alert("On focus!");
            }
        })
    })();

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: