Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Widgets Basics in odoo9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 488
    Comment on it

    Widgets are most powerful workstation and the Odoo web client bundles jQuery for easy DOM manipulation. It is useful and provides a better API then standard W3C DOM2, but it is insufficient to structure complex applications which leads to difficult maintenance.
    For example code is given below.

    local.HomePage = instance.Widget.extend({
        start: function() {
            console.log("pet store home page loaded");
    });
    local.HomePage = instance.Widget.extend({ start: function() { console.log("pet store home page loaded"); }, });
    instance.web.client_actions.add(
        'petstore.homepage', 'instance.oepetstore.HomePage');

    Note- The widget will be called from outside our module, the web client needs its "fully qualified" name, not the local version.

 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: