summaryrefslogtreecommitdiff
path: root/addons/document/static/src/js/document.js
diff options
context:
space:
mode:
authorFrédéric van der Essen <fva@openerp.com>2012-10-01 13:52:59 +0200
committerFrédéric van der Essen <fva@openerp.com>2012-10-01 13:52:59 +0200
commit6d1bf5132419c14d03ecd9577cf4af0ec9afab3d (patch)
treef8efcdff39308e54b1e338b56f125904ab280153 /addons/document/static/src/js/document.js
parente7512fd22ffc60e1cbce96d2bc58e3fc73b4013f (diff)
parent3686a01df372b01dcec9a5438ba9b16256895c5e (diff)
[MERGE] from trunk
bzr revid: fva@openerp.com-20121001115259-yboimh3mluw9a503
Diffstat (limited to 'addons/document/static/src/js/document.js')
-rw-r--r--addons/document/static/src/js/document.js10
1 files changed, 10 insertions, 0 deletions
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