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'] = [];
        }
    });
};
@@ -233,16 +233,22 @@
 ons.
-unshift(
+ splice(1, 0, 
 %7B 'n

add attachment menu at second position