Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Odoo: Javascript Options

    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 403
    Comment on it

    If you want to Javascript Options in OpenERP(Odoo) follow the below mentioned code in your Static->SRC->JS file: -

    <div data-js="snippet_testimonial_options" data-selector=".snippet_testimonial">
      [...]
    </div>
    (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: