[IMP]disable attachments on list view.
bzr revid: vme@tinyerp.com-20130201121215-6x55ww50kwjast1a
This commit is contained in:
@@ -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'] = [];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user