[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
This commit is contained in:
Xavier Morel 2011-09-20 16:13:34 +02:00
parent 5e1bdbeb26
commit bf48d88979
1 changed files with 3 additions and 1 deletions

View File

@ -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')