diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-09-20 16:13:34 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-09-20 16:13:34 +0200 |
| commit | bf48d88979f24cdfcf471e8f0a6791ff511a0457 (patch) | |
| tree | adea9a765319815b7bda0b83c5e906fac729f69b /addons/web/static/src | |
| parent | 5e1bdbeb26c93dd3144605f9fa4666782037b40b (diff) | |
[FIX] one more horrible listview hack, to strip out intermediate dom breaking the listview table
lp bug: https://launchpad.net/bugs/851683 fixed
bzr revid: xmo@openerp.com-20110920141334-k95x10gv9tkneeev
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_list_editable.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index b5a5a3d8c10..d2b2c03c2ee 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -184,8 +184,10 @@ openerp.web.list_editable = function (openerp) { form_template: 'ListView.row.form', registry: openerp.web.list.form.widgets }); - self.edition_form.appendTo($("#" + $new_row.attr('id'))); + self.edition_form.appendTo($new_row); $.when(self.edition_form.on_loaded(self.get_form_fields_view())).then(function () { + // remove shitty intermediate inserted by EmptyComponent + $new_row.children().children().unwrap(); // put in $.when just in case FormView.on_loaded becomes asynchronous $new_row.find('td') .addClass('oe-field-cell') |
