diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js index 0a99fd4ef56..2dde2696c81 100644 --- a/addons/document/static/src/js/document.js +++ b/addons/document/static/src/js/document.js @@ -1,9 +1,9 @@ openerp.document = function (instance) { _t = instance.web._t; - instance.web.SidebarAttachement =instance.web.Sidebar.include({ + instance.web.Sidebar.include({ init : function(){ this._super.apply(this, arguments); - this.sections. splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), }); + this.sections.splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), }); this.items['files'] = []; } });