[REF] refectroed the row count code

bzr revid: jam@tinyerp.com-20120824054547-v3me14ca341rkj44
This commit is contained in:
Jigar Amin - OpenERP
2012-08-24 11:15:47 +05:30
parent 12f01f09a1
commit 813db083ff
+1 -5
View File
@@ -3566,11 +3566,7 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
});
instance.web.form.One2ManyList = instance.web.ListView.List.extend({
pad_table_to: function (count) {
count = count > 0 ? count - 1 : 0
if (! this.view._is_action_enabled('create')){
count = this.records.length
}
this._super(count);
this._super(this.view._is_action_enabled('create') ? (count > 0 ? count - 1 : 0) : this.records.length);
// magical invocation of wtf does that do
if (this.view.o2m.get('effective_readonly')) {