From c0a2f48869a14b6f90f47770f34b4481b53ad7bd Mon Sep 17 00:00:00 2001 From: Vidhin Mehta Date: Fri, 1 Feb 2013 17:42:15 +0530 Subject: [PATCH] [IMP]disable attachments on list view. bzr revid: vme@tinyerp.com-20130201121215-6x55ww50kwjast1a --- addons/document/static/src/js/document.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js index 23f1375e8c8..6ba25b58292 100644 --- a/addons/document/static/src/js/document.js +++ b/addons/document/static/src/js/document.js @@ -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'] = []; },