From ae5169f0b5cfa6739110d9637b29c0f163273a19 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Fri, 25 Apr 2014 11:08:41 +0200 Subject: [PATCH] Add module web_send_message_popup changing the 'Send a message' link to open directly the full featured message popup --- web_send_message_popup/__init__.py | 1 + web_send_message_popup/__openerp__.py | 49 +++++++++++++++++++ .../static/src/xml/mail.xml | 11 +++++ 3 files changed, 61 insertions(+) create mode 100644 web_send_message_popup/__init__.py create mode 100644 web_send_message_popup/__openerp__.py create mode 100644 web_send_message_popup/static/src/xml/mail.xml diff --git a/web_send_message_popup/__init__.py b/web_send_message_popup/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/web_send_message_popup/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/web_send_message_popup/__openerp__.py b/web_send_message_popup/__openerp__.py new file mode 100644 index 00000000..2cbc0557 --- /dev/null +++ b/web_send_message_popup/__openerp__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Author: Guewen Baconnier +# Copyright 2014 Camptocamp SA +# +# 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': 'Web Send Message as Popup', + 'version': '1.0', + 'author': 'Camptocamp', + 'maintainer': 'Camptocamp', + 'license': 'AGPL-3', + 'category': 'Hidden', + 'depends': ['web', + ], + 'description': """ +Web Send Message as Popup +========================= + +In the email/notes threads below the form views, the link 'Send a +message' unfold a text field. From there, a button allows to open the +text field in a full featured email popup with the subject, templates, +attachments and followers. + +This module changes the link 'Send a message' so it opens directly the +full featured popup instead of the text field, avoiding an extra click +if the popup is always wanted. + + """, + 'website': 'http://www.camptocamp.com', + 'qweb': ['static/src/xml/mail.xml', + ], + 'installable': True, + 'auto_install': False, +} diff --git a/web_send_message_popup/static/src/xml/mail.xml b/web_send_message_popup/static/src/xml/mail.xml new file mode 100644 index 00000000..21029a47 --- /dev/null +++ b/web_send_message_popup/static/src/xml/mail.xml @@ -0,0 +1,11 @@ + +