[MERGE] Global attachments are visible only if you nstall document module
bzr revid: fp@tinyerp.com-20120927173919-grczxv8yzv3kf2c8
This commit is contained in:
commit
c4dbe9fc10
|
@ -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'],
|
||||
|
|
|
@ -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'] = [];
|
||||
}
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue