From cb6647c93b38653b6313f815da6d3a7be9735632 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Thu, 10 Jan 2013 12:24:10 +0100 Subject: [PATCH 1/2] [ADD] hide_duplicate_button module --- hide_duplicate_button/AUTHORS.txt | 1 + hide_duplicate_button/__init__.py | 20 +++++++++ hide_duplicate_button/__openerp__.py | 42 +++++++++++++++++++ .../static/css/duplicate_button.css | 4 ++ 4 files changed, 67 insertions(+) create mode 100644 hide_duplicate_button/AUTHORS.txt create mode 100644 hide_duplicate_button/__init__.py create mode 100644 hide_duplicate_button/__openerp__.py create mode 100644 hide_duplicate_button/static/css/duplicate_button.css diff --git a/hide_duplicate_button/AUTHORS.txt b/hide_duplicate_button/AUTHORS.txt new file mode 100644 index 00000000..7106ca0e --- /dev/null +++ b/hide_duplicate_button/AUTHORS.txt @@ -0,0 +1 @@ +Lorenzo Battistini diff --git a/hide_duplicate_button/__init__.py b/hide_duplicate_button/__init__.py new file mode 100644 index 00000000..034ec576 --- /dev/null +++ b/hide_duplicate_button/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2013 Agile Business Group sagl () +# Copyright (C) 2013 Domsense srl () +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/hide_duplicate_button/__openerp__.py b/hide_duplicate_button/__openerp__.py new file mode 100644 index 00000000..e96c9c4e --- /dev/null +++ b/hide_duplicate_button/__openerp__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2013 Agile Business Group sagl () +# Copyright (C) 2013 Domsense srl () +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + 'name': 'Hide duplicate button', + 'version': '0.1', + 'category': 'Web', + 'description': """Hide 'duplicate' button for every form view""", + 'author': 'Agile Business Group & Domsense', + 'website': 'http://www.agilebg.com', + 'license': 'AGPL-3', + 'depends': [ + 'web', + ], + 'init_xml': [], + 'update_xml': [], + 'demo_xml': [], + 'active': False, + 'installable': True, + 'css' : [ + "static/css/duplicate_button.css", + ], +} + diff --git a/hide_duplicate_button/static/css/duplicate_button.css b/hide_duplicate_button/static/css/duplicate_button.css new file mode 100644 index 00000000..fe7b64f8 --- /dev/null +++ b/hide_duplicate_button/static/css/duplicate_button.css @@ -0,0 +1,4 @@ + +.openerp .oe_form_button_duplicate { + display:none; +} From 45572b3b85057902fb7a10d2ed037c245f53a3f0 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Thu, 10 Jan 2013 12:39:59 +0100 Subject: [PATCH 2/2] [imp] description --- hide_duplicate_button/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hide_duplicate_button/__openerp__.py b/hide_duplicate_button/__openerp__.py index e96c9c4e..d8e45bbd 100644 --- a/hide_duplicate_button/__openerp__.py +++ b/hide_duplicate_button/__openerp__.py @@ -23,7 +23,7 @@ 'name': 'Hide duplicate button', 'version': '0.1', 'category': 'Web', - 'description': """Hide 'duplicate' button for every form view""", + 'description': """As 'duplicate' button often produce inconveniences when modules don't correctly handle the 'copy' methods, this module allow to hide 'duplicate' button for every form view""", 'author': 'Agile Business Group & Domsense', 'website': 'http://www.agilebg.com', 'license': 'AGPL-3',