Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to make your first widget in OpenERP/Odoo ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 322
    Comment on it

    The initial demonstration module already provides a basic widget:
    For example code look like below.

    local.HomePage = instance.Widget.extend({
        start: function() {
            console.log("pet store home page loaded");
        },
    });
    It extends Widget() and overrides the standard method start(), which  much like the previous MyClass  does little for now.
    This line at the end of the file:
    instance.web.client_actions.add(
        'petstore.homepage', 'instance.oepetstore.HomePage');

    Note- It is basic widget as a client action. Client actions will be explained later, for now this is just what allows our widget to be called and displayed when we select the Pet Store Pet Store Home Page menu.

 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: