diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-10-05 14:49:19 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-10-05 14:49:19 +0200 |
| commit | b965ae5cf79f87a838d8a941f154390737895c4a (patch) | |
| tree | 168596c17d07c92af9bc29d3acc78f1ea5ecbf81 /addons/web_tests/static/src | |
| parent | 6a23c24da13f5907d4c407e919bff187a3a0ae1d (diff) | |
| parent | c8c4086fd655b09f5fc0a4bde4d43d95745520f1 (diff) | |
[MERGE] from trunk
bzr revid: xmo@openerp.com-20121005124919-yfkbzk3mjm0tot4e
Diffstat (limited to 'addons/web_tests/static/src')
| -rw-r--r-- | addons/web_tests/static/src/js/web_tests.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_tests/static/src/js/web_tests.js b/addons/web_tests/static/src/js/web_tests.js index e006567c707..5b9c1d02503 100644 --- a/addons/web_tests/static/src/js/web_tests.js +++ b/addons/web_tests/static/src/js/web_tests.js @@ -2,7 +2,7 @@ openerp.web_tests = function (instance) { instance.web.client_actions.add( 'buncha-forms', 'instance.web_tests.BunchaForms'); instance.web_tests = {}; - instance.web_tests.BunchaForms = instance.web.OldWidget.extend({ + instance.web_tests.BunchaForms = instance.web.Widget.extend({ init: function (parent) { this._super(parent); this.dataset = new instance.web.DataSetSearch(this, 'test.listview.relations'); @@ -18,7 +18,7 @@ openerp.web_tests = function (instance) { start: function () { $.when( this.dataset.read_slice(), - this.form.appendTo(this.$element)).then(this.on_everything_loaded); + this.form.appendTo(this.$el)).then(this.on_everything_loaded); }, on_everything_loaded: function (slice) { var records = slice[0].records; @@ -29,7 +29,7 @@ openerp.web_tests = function (instance) { this.form.on_record_loaded(records[0]); _(records.slice(1)).each(function (record, index) { this.dataset.index = index+1; - this.form.reposition($('<div>').appendTo(this.$element)); + this.form.reposition($('<div>').appendTo(this.$el)); this.form.on_record_loaded(record); }, this); } |
