[FIX] dataset class

bzr revid: al@openerp.com-20121110222822-ey7vzl7excr70j9k
This commit is contained in:
Antony Lesuisse 2012-11-10 23:28:22 +01:00
parent e30858b91e
commit 521f52caff
1 changed files with 2 additions and 1 deletions

View File

@ -358,7 +358,7 @@ instance.web.Model = instance.web.Class.extend({
},
});
instance.web.DataSet = instance.web.Class.extend({
instance.web.DataSet = instance.web.Class.extend(instance.web.PropertiesMixin, {
/**
* Collection of OpenERP records, used to share records and the current selection between views.
*
@ -367,6 +367,7 @@ instance.web.DataSet = instance.web.Class.extend({
* @param {String} model the OpenERP model this dataset will manage
*/
init: function(parent, model, context) {
instance.web.PropertiesMixin.init.call(this);
this.model = model;
this.context = context || {};
this.index = null;