[MERGE] Global attachments are visible only if you nstall document module

bzr revid: fp@tinyerp.com-20120927173919-grczxv8yzv3kf2c8
This commit is contained in:
Fabien Pinckaers 2012-09-27 19:39:19 +02:00
commit c4dbe9fc10
2 changed files with 11 additions and 0 deletions

View File

@ -57,6 +57,7 @@ ATTENTION:
],
'demo': [ 'document_demo.xml','board_document_demo.xml'],
'test': ['test/document_test2.yml'],
'js': ['static/src/js/document.js'],
'installable': True,
'auto_install': False,
'images': ['images/1_directories.jpeg','images/2_storage_media.jpeg','images/3_directories_structure.jpeg'],

View File

@ -0,0 +1,10 @@
openerp.document = function (instance) {
_t = instance.web._t;
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'] = [];
}
});
};