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

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 463
    Comment on it

    Model reference is used with main super-class for regular database-persisted OpenERP models. OpenERP models are created by inheriting from this class. For example you can see below code.

    class user(Model):
        ...
    openerp.oepetstore = function(instance, local) {
        var _t = instance.web._t,
            _lt = instance.web._lt;
        var QWeb = instance.web.qweb;
    
        local.HomePage = instance.Widget.extend({
            start: function() {
                console.log("pet store home page loaded");
            },
        });
    
        instance.web.client_actions.add(
            'petstore.homepage', 'instance.oepetstore.HomePage');
    }

 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: