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)