[IMP] add empty padding columns to editable rows when group_by active

bzr revid: xmo@openerp.com-20110606140154-39f2ivk5csfkc5x9
This commit is contained in:
Xavier Morel 2011-06-06 16:01:54 +02:00
parent ea92194cc6
commit 26bd0653c4
1 changed files with 12 additions and 7 deletions

View File

@ -131,13 +131,18 @@ openerp.base.list.editable = function (openerp) {
position: 'last',
unique: true,
callback: function () {
self.edition_form.$element
.find('td')
.addClass('oe-field-cell')
.removeAttr('width')
.end()
.find('td:first').removeClass('oe-field-cell').end()
.find('td:last').removeClass('oe-field-cell').end();
var $e = self.edition_form.$element;
$e.find('td')
.addClass('oe-field-cell')
.removeAttr('width')
.end()
.find('td:first').removeClass('oe-field-cell').end()
.find('td:last').removeClass('oe-field-cell').end();
_(self.columns).each(function (column) {
if (column.meta) {
$e.prepend('<td>');
}
});
}
});
this.edition_form.do_show();