From 81678402c0b1692c4ee2adc251ba60698443f76b Mon Sep 17 00:00:00 2001 From: "RGA(OpenERP)" <> Date: Mon, 24 Sep 2012 12:51:27 +0530 Subject: [IMP] remove attachment from top toolbar, it should be only appear after document module install bzr revid: rgaopenerp-20120924072127-g1pgfawn9sf92ep0 --- addons/document/static/src/js/document.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 addons/document/static/src/js/document.js (limited to 'addons/document/static') 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 -- cgit v1.2.3 From c21850bcdd62046cd35169289e23f5725c26635e Mon Sep 17 00:00:00 2001 From: "RGA(OpenERP)" <> Date: Mon, 24 Sep 2012 17:22:02 +0530 Subject: [IMP] add attachment menu at second position bzr revid: rgaopenerp-20120924115202-zq5k5130te1m1j4h --- addons/document/static/src/js/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/document/static') diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js index dc924c63f70..0a99fd4ef56 100644 --- a/addons/document/static/src/js/document.js +++ b/addons/document/static/src/js/document.js @@ -3,7 +3,7 @@ openerp.document = function (instance) { instance.web.SidebarAttachement =instance.web.Sidebar.include({ init : function(){ this._super.apply(this, arguments); - this.sections.unshift({ 'name' : 'files', 'label' : _t('Attachment(s)'), }); + this.sections. splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), }); this.items['files'] = []; } }); -- cgit v1.2.3 From 2fd06a53de196ca2d85c6530962b34e14e833e06 Mon Sep 17 00:00:00 2001 From: "RGA(OpenERP)" <> Date: Tue, 25 Sep 2012 12:37:43 +0530 Subject: fix typo bzr revid: rgaopenerp-20120925070743-5wg90i03onym8826 --- addons/document/static/src/js/document.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/document/static') diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js index 0a99fd4ef56..2dde2696c81 100644 --- a/addons/document/static/src/js/document.js +++ b/addons/document/static/src/js/document.js @@ -1,9 +1,9 @@ openerp.document = function (instance) { _t = instance.web._t; - instance.web.SidebarAttachement =instance.web.Sidebar.include({ + instance.web.Sidebar.include({ init : function(){ this._super.apply(this, arguments); - this.sections. splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), }); + this.sections.splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), }); this.items['files'] = []; } }); -- cgit v1.2.3