Merge lp:~camptocamp/web-addons/7.0-add-web_send_message_popup into lp:~webaddons-core-editors/web-addons/7.0

Proposed by Guewen Baconnier @ Camptocamp
Status: Merged
Merged at revision: 34
Proposed branch: lp:~camptocamp/web-addons/7.0-add-web_send_message_popup
Merge into: lp:~webaddons-core-editors/web-addons/7.0
Diff against target: 79 lines (+61/-0)
3 files modified
web_send_message_popup/__init__.py (+1/-0)
web_send_message_popup/__openerp__.py (+49/-0)
web_send_message_popup/static/src/xml/mail.xml (+11/-0)
To merge this branch: bzr merge lp:~camptocamp/web-addons/7.0-add-web_send_message_popup
Reviewer Review Type Date Requested Status
Joël Grand-Guillaume @ camptocamp code review, no tests Approve
Holger Brunn (Therp) code review Approve
Review via email: mp+217188@code.launchpad.net

Commit message

Add module web_send_message_popup changing the 'Send a message' link to open directly the full featured message popup

Description of the change

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.

To post a comment you must log in.
28. By Guewen Baconnier @ Camptocamp

merge from main branch

29. By Guewen Baconnier @ Camptocamp

merge from lp:~camptocamp/web-addons/7.0-add-web_send_message_popup

Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve (code review)
Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :

LGTM, thanks !

review: Approve (code review, no tests)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'web_send_message_popup'
2=== added file 'web_send_message_popup/__init__.py'
3--- web_send_message_popup/__init__.py 1970-01-01 00:00:00 +0000
4+++ web_send_message_popup/__init__.py 2014-04-25 09:10:25 +0000
5@@ -0,0 +1,1 @@
6+# -*- coding: utf-8 -*-
7
8=== added file 'web_send_message_popup/__openerp__.py'
9--- web_send_message_popup/__openerp__.py 1970-01-01 00:00:00 +0000
10+++ web_send_message_popup/__openerp__.py 2014-04-25 09:10:25 +0000
11@@ -0,0 +1,49 @@
12+# -*- coding: utf-8 -*-
13+##############################################################################
14+#
15+# Author: Guewen Baconnier
16+# Copyright 2014 Camptocamp SA
17+#
18+# This program is free software: you can redistribute it and/or modify
19+# it under the terms of the GNU Affero General Public License as
20+# published by the Free Software Foundation, either version 3 of the
21+# License, or (at your option) any later version.
22+#
23+# This program is distributed in the hope that it will be useful,
24+# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+# GNU Affero General Public License for more details.
27+#
28+# You should have received a copy of the GNU Affero General Public License
29+# along with this program. If not, see <http://www.gnu.org/licenses/>.
30+#
31+##############################################################################
32+
33+{'name': 'Web Send Message as Popup',
34+ 'version': '1.0',
35+ 'author': 'Camptocamp',
36+ 'maintainer': 'Camptocamp',
37+ 'license': 'AGPL-3',
38+ 'category': 'Hidden',
39+ 'depends': ['web',
40+ ],
41+ 'description': """
42+Web Send Message as Popup
43+=========================
44+
45+In the email/notes threads below the form views, the link 'Send a
46+message' unfold a text field. From there, a button allows to open the
47+text field in a full featured email popup with the subject, templates,
48+attachments and followers.
49+
50+This module changes the link 'Send a message' so it opens directly the
51+full featured popup instead of the text field, avoiding an extra click
52+if the popup is always wanted.
53+
54+ """,
55+ 'website': 'http://www.camptocamp.com',
56+ 'qweb': ['static/src/xml/mail.xml',
57+ ],
58+ 'installable': True,
59+ 'auto_install': False,
60+}
61
62=== added directory 'web_send_message_popup/static'
63=== added directory 'web_send_message_popup/static/src'
64=== added directory 'web_send_message_popup/static/src/xml'
65=== added file 'web_send_message_popup/static/src/xml/mail.xml'
66--- web_send_message_popup/static/src/xml/mail.xml 1970-01-01 00:00:00 +0000
67+++ web_send_message_popup/static/src/xml/mail.xml 2014-04-25 09:10:25 +0000
68@@ -0,0 +1,11 @@
69+<?xml version="1.0" encoding="UTF-8"?>
70+<template>
71+ <t t-extend="mail.compose_message">
72+ <t t-jquery="a.oe_compose_post:eq(0)" t-operation="replace">
73+ <a class="oe_compose_post oe_full" t-if="widget.options.compose_placeholder"><t t-raw="widget.options.compose_placeholder"/></a>
74+ </t>
75+ <t t-jquery="a.oe_compose_post:eq(1)" t-operation="replace">
76+ <a class="oe_compose_post oe_full" t-if="!widget.options.compose_placeholder and !widget.options.view_mailbox">Send a message</a>
77+ </t>
78+ </t>
79+</template>

Subscribers

People subscribed via source and target branches