summaryrefslogtreecommitdiff
path: root/addons/document/static/src/js/document.js
diff options
context:
space:
mode:
authorRGA(OpenERP) <>2012-09-24 12:51:27 +0530
committerRGA(OpenERP) <>2012-09-24 12:51:27 +0530
commit81678402c0b1692c4ee2adc251ba60698443f76b (patch)
tree36976d10131513413edaac6fddd800437961c2ab /addons/document/static/src/js/document.js
parent921661b4e86481c861b4363fd4af6c80b6937609 (diff)
[IMP] remove attachment from top toolbar, it should be only appear after document module install
bzr revid: rgaopenerp-20120924072127-g1pgfawn9sf92ep0
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..dc924c63f70
--- /dev/null
+++ b/addons/document/static/src/js/document.js
@@ -0,0 +1,10 @@
+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'] = [];
+ }
+ });
+}; \ No newline at end of file