openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #06230
[Merge] lp:~camptocamp/web-addons/7.0-add-web_send_message_popup into lp:web-addons
Guewen Baconnier @ Camptocamp has proposed merging lp:~camptocamp/web-addons/7.0-add-web_send_message_popup into lp:web-addons.
Commit message:
Add module web_send_message_popup changing the 'Send a message' link to open directly the full featured message popup
Requested reviews:
Web-Addons Core Editors (webaddons-core-editors)
For more details, see:
https://code.launchpad.net/~camptocamp/web-addons/7.0-add-web_send_message_popup/+merge/217188
Add the web_send_message_popup module.
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.
--
https://code.launchpad.net/~camptocamp/web-addons/7.0-add-web_send_message_popup/+merge/217188
Your team Web-Addons Core Editors is requested to review the proposed merge of lp:~camptocamp/web-addons/7.0-add-web_send_message_popup into lp:web-addons.
=== added directory 'web_send_message_popup'
=== added file 'web_send_message_popup/__init__.py'
--- web_send_message_popup/__init__.py 1970-01-01 00:00:00 +0000
+++ web_send_message_popup/__init__.py 2014-04-25 09:10:25 +0000
@@ -0,0 +1,1 @@
+# -*- coding: utf-8 -*-
=== added file 'web_send_message_popup/__openerp__.py'
--- web_send_message_popup/__openerp__.py 1970-01-01 00:00:00 +0000
+++ web_send_message_popup/__openerp__.py 2014-04-25 09:10:25 +0000
@@ -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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{'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,
+}
=== added directory 'web_send_message_popup/static'
=== added directory 'web_send_message_popup/static/src'
=== added directory 'web_send_message_popup/static/src/xml'
=== added file 'web_send_message_popup/static/src/xml/mail.xml'
--- web_send_message_popup/static/src/xml/mail.xml 1970-01-01 00:00:00 +0000
+++ web_send_message_popup/static/src/xml/mail.xml 2014-04-25 09:10:25 +0000
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template>
+ <t t-extend="mail.compose_message">
+ <t t-jquery="a.oe_compose_post:eq(0)" t-operation="replace">
+ <a class="oe_compose_post oe_full" t-if="widget.options.compose_placeholder"><t t-raw="widget.options.compose_placeholder"/></a>
+ </t>
+ <t t-jquery="a.oe_compose_post:eq(1)" t-operation="replace">
+ <a class="oe_compose_post oe_full" t-if="!widget.options.compose_placeholder and !widget.options.view_mailbox">Send a message</a>
+ </t>
+ </t>
+</template>
Follow ups