diff options
| author | Olivier Dony <odo@openerp.com> | 2012-10-01 16:53:08 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2012-10-01 16:53:08 +0200 |
| commit | 9e6920415e41a052cffa7b898bf044dbf82b5ccb (patch) | |
| tree | 05e8d64788da1ff9f65e7406e3ff3d96d58a5762 /addons/web_tests/static/src/js/web_tests.js | |
| parent | 4ed79f3457a0252dcee4780385dc474ff2af356e (diff) | |
| parent | 1370ae133d4477d0a7a2239732f529a1eef39824 (diff) | |
[MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121001145308-ri5rp2cazxqxcxme
Diffstat (limited to 'addons/web_tests/static/src/js/web_tests.js')
| -rw-r--r-- | addons/web_tests/static/src/js/web_tests.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web_tests/static/src/js/web_tests.js b/addons/web_tests/static/src/js/web_tests.js index e6e6079ede5..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'); @@ -13,12 +13,12 @@ openerp.web_tests = function (instance) { this.form.registry = instance.web.form.readonly; }, render: function () { - return '<div class="oe-bunchaforms"></div>'; + return '<div class="oe_bunchaforms"></div>'; }, 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); } |
