diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-09-28 10:34:33 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-09-28 10:34:33 +0530 |
| commit | ad5a175d8be28e24921f1c2cfc4485ee8cb8fefd (patch) | |
| tree | 5bd7f3961748f8b9530f2cad8411f96b22204334 /addons/document | |
| parent | 6585e5288f1ad60ee25d059fe29a0c04c4c87883 (diff) | |
| parent | b6254d631a0515685bf26c43044fba700456d349 (diff) | |
[MERGE]:trunk
bzr revid: apa@tinyerp.com-20120928050433-1gb7lpwwxdfpedlu
Diffstat (limited to 'addons/document')
| -rw-r--r-- | addons/document/__openerp__.py | 2 | ||||
| -rw-r--r-- | addons/document/static/src/js/document.js | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/addons/document/__openerp__.py b/addons/document/__openerp__.py index 212965a8162..e3354efff0c 100644 --- a/addons/document/__openerp__.py +++ b/addons/document/__openerp__.py @@ -57,9 +57,9 @@ 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, - 'certificate': '0070515416461', 'images': ['images/1_directories.jpeg','images/2_storage_media.jpeg','images/3_directories_structure.jpeg'], } diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js new file mode 100644 index 00000000000..2dde2696c81 --- /dev/null +++ b/addons/document/static/src/js/document.js @@ -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'] = []; + } + }); +};
\ No newline at end of file |
