[IMP] add empty padding columns to editable rows when group_by active
bzr revid: xmo@openerp.com-20110606140154-39f2ivk5csfkc5x9
This commit is contained in:
parent
ea92194cc6
commit
26bd0653c4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue