[IMP]disable attachments on list view.

bzr revid: vme@tinyerp.com-20130201121215-6x55ww50kwjast1a
This commit is contained in:
Vidhin Mehta
2013-02-01 17:42:15 +05:30
parent 1e715c8243
commit c0a2f48869
@@ -3,6 +3,7 @@ openerp.document = function (instance) {
instance.web.Sidebar.include({
init : function(){
this._super.apply(this, arguments);
if (this.getParent().fields_view.type === "tree") return;
this.sections.splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), });
this.items['files'] = [];
},