openerp.document = function (instance) {
    _t = instance.web._t;
    instance.web.SidebarAttachement =instance.web.Sidebar.include({
        init : function(){
            this._super.apply(this, arguments);
            this.sections.unshift({ 'name' : 'files', 'label' : _t('Attachment(s)'), });
            this.items['files'] = [];
        }
    });
};
openerp.document = function (instance) {
    _t = instance.web._t;
    instance.web.SidebarAttachement =instance.web.Sidebar.include({
        init : function(){
            this._super.apply(this, arguments);
            this.sections. splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), });
            this.items['files'] = [];
        }
    });
};
add attachment menu at second position