Commit Graph
50 Commits
Author SHA1 Message Date
std-odoo 322ed33d42 [IMP] mail_group: improve the UI and misc improvements
Purpose
=======
This commit improves the UI of the mail group module (backend and portal
view), fix some bugs and clean the code.

Bug 1
=====
If a user click 2 times on a confirmation link, an error is raised.

Bug 2
=====
A bug about the website snippets has been fixed;
- Add the snippet to a group in which you are member
- Change the group of the snippet to a group in which you are not member
- The snippet still show "Unsubscribe"

Bug 3
=====
In the portal view, when messages are filtered by month, messages which
are created in the last day of the month appear also in the next month.

Specification
=============
UI
--
Show the Allow / Ban buttons whatever is the state of the message, so
the user can ban / whitelist a message even if there's no pending email.

When we receive an email, remove the "Mailing List" footer. This was a
big issue because when some users reply many times, the footer was
duplicated on each answer.

Improve the form view of the mail group:
- On non-moderated group, show all messages instead of only pending
  message
- Show the guidelines stuff on non-moderated groups

Improve the portal view
- show the attachments under every message (not only on opened message)
- improve the template to confirm the subscription of the user
- improve the portal view for mobile device
- do not show rejected messages, even for admin
- do not show the button "X replies" when the mode is not thread

Technical
---------
Split the route "/groups/subscription" into "/group/subscribe" and
"/group/unsubscribe"

Correctly quote the parent email for the emails sent by web version of
Outlook (with the HTML id "divRplyFwdMsg").

ACLs
----
Now only administrators or responsible / moderators can write / unlink
the group.

Fix an ACL issue on the group member where the responsible of a
non-moderated group could not access the members of the group.

Members with same email
-----------------------

Improve the behavior when multiple members have the same email address
(this situation is possible because there's no unique constraint on the
email field of the <res.partner> model.) We now return the most
appropriate member for the given email address and partner.

When unsubscribing by clicking on the confirmation link that we received
by email, remove all members with the same email address.

Links
=====
Task-2599676
See odoo/odoo/pull/73640

closes odoo/odoo#73640

Related: odoo/upgrade#2774
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-01 19:07:48 +00:00
std-odoo 8b814947d3 [ADD] website_mail_group: re-add the <mail.group> website snippets
Purpose
=======

This snippets was originally in the "Website Mail Channel" module,
but it has been removed.

The snippet allow the user to subscribe to a specific mailing list.

If the current user has no access to the mailing list (because of ACL
rule) the widget will be invisible for him.

Links
=====

Task-2510267
See odoo/pull/71599
See odoo/enterprise/pull/19296
See odoo/upgrade/pull/2600
2021-07-09 12:32:28 +00:00
Thibault Delavallée a316295e36 [RENAME][MOV] mail, website_mail, website_mail_group: mail.group files
renamed to mail.channel.

At this point no model has been renamed; only files have been moved.
n mail, mail_group files have been renamed to mail_channel. The
website_mail_group addon has been renamed to website_mail_channel.
Some internal references have been updated (templates, linked files).
2015-07-09 10:13:41 +02:00
Christophe Matthieu 28ed28f945 [IMP] website: create a new web editor in the backend to edit html field with the website builder 2015-02-12 11:58:12 +01:00
Fabien Pinckaers acc74dcfa4 [IMP] layout issues /groups 2015-01-20 18:40:15 +01:00
Christophe Simonis d64fe8279b [MERGE] forward port of branch 8.0 up to c92e70b 2014-11-17 17:31:12 +01:00
Jeremy Kersten 2e604c9d08 [FIX] mail_group: use default picture disc if not mimetype has been defined (else tb) 2014-11-13 14:48:13 +01:00
Christophe Simonis 5068cffbb0 [MERGE] forward port of branch 8.0 up to 491372e 2014-11-05 20:30:40 +01:00
David Monjoie f7aad08418 [FIX] display the message title in the page title for seo
It used to display the name of the qweb template for every message, which was uninformative and bad for seo
2014-11-04 13:51:42 +01:00
Christophe Simonis 709c9868de [MERGE] forward port of branch 8.0 up to e883193 2014-10-01 19:18:14 +02:00
Christophe Matthieu 6048e883e8 [FIX] snippets: use the new API to define dropzone 2014-09-19 12:13:32 +02:00
Fabien Meghazi bc5e6fa2cb [ADD] Helper for /website/image (allows to use aggressive cache) 2014-09-16 19:54:59 +02:00
Fabien Meghazi cdcd488f5a [IMP] Move website_mail_group floating assets in frontend bundle 2014-09-16 19:54:59 +02:00
Christophe Simonis 31bf30d2d0 [MERGE] forward port of branch 8.0 up to ed1c173 2014-09-05 15:28:22 +02:00
Fabien Meghazi 5e6e1303e3 [IMP] pretty urls for /website/image 2014-08-28 16:37:38 +02:00
Christophe Matthieu 1b0031c524 [IMP] website.snippet: create automatically the thumbnail; data-option became data-js; add data-eval method; rename check_class into toggle_class 2014-08-27 12:20:14 +02:00
Christophe Matthieu 239b6bc0b5 [IMP] website snippet new option, gallery
website.snippet: The methods described in javascript will be called automatically from the data-method_name = value on li snippets options. The methods are called in the order relative to children of xml (eg: <li data-method1=value1> ... <li data-method2=value2> ... </ li>, the method1 is then called method2). Methods receive two arguments: type (over, click, reset) and value. data-snippet-id-option becomes data-snippet-id. Several xml options can use the same data-snippet-id.

add a new gallery snippet

convert website_sale to the new option system
2014-08-21 18:02:14 +02:00
Fabien Pinckaers b5104b1321 [FIX] HTML row 2014-08-19 17:41:21 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Denis Ledoux a5f7891b68 [MERGE] forward port of branch saas-4 up to 5739aebfb1 2014-07-23 13:18:30 +02:00
Olivier Dony 817b60de1a [FIX] website_mail_group: slufigy group link + spellchecking 2014-07-17 01:04:25 +02:00
Olivier Dony 6ac1deccf6 [FIX] mail, website_mail: specific mailing-list footer + better unsubscribe option
- remove the default footer for mail.group messages,
  replace with specific footer with archive and unsubscribe
  link
- remove the automatic addition of user signature in
  mail.group messages, as many of them will be posted
  via the mail gateway and already contain a user signature.
- make it easier to unsubscribe even when not logged in,
  as followers who have not signed up will have no
  way to login short of signing up.
- remove tests looking for user signature in mail.group posts
2014-07-16 23:21:30 +02:00
Thibault Delavallée 2c45b7162c [IMP] [BACKPORT] Mailing lists usability improvements: headers related to mailing lists, use of email queue for notification emails (> 50 followers), archive website template imp and fix. Backport of commit 839815f of saas-5 (PR 502). 2014-06-30 11:04:24 +02:00
Christophe Simonis eef6330c55 [MERGE] forward port of branch saas-5 up to adf07a9 2014-06-19 16:23:32 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Thibault Delavallée b07b8a5b1f [FIX] website_mail: restored follow JS code that was wrongly merged with the mail group follow snippet. Now both widget animation exists, the second being more complex and therefore requiring a different animation. 2014-06-19 09:33:36 +02:00
Thibault Delavallée 15f5abcbbe [IMP] mail, website_mail_group: discussion group improvements
- added possibility in mail to have a model adding custom headers in emails sent for notifications for new messages
- mail.group now add list-id and precedence: list in the headers to inform mailing systems that those mails are to be considered as mailing lists
- website_mail_group adds some further data in the headers (subscribe, unsubscribe, archives)
- groups page now display the number of message in the last month
- notification emails are now queued after 50 recipients
2014-06-12 13:45:21 +02:00
Richard Mathot 8dc0503aa5 [FIX] website*: make custom footer independant of main layout 2014-06-02 16:56:36 +02:00
Olivier Dony 045ecc603e [FIX] website_mail_group: restore missing snippet icon
The file was originally added in website_mail at 59b934
in saas-4 but was lost in master since.
2014-05-29 02:07:18 +02:00
Olivier Dony 248107d11a [FIX] website_mail*: fix + bundlify changes of 0c89ca: move subscription widget from website_mail to website_mail_group 2014-05-29 01:59:47 +02:00
Thibault Delavallée 0c89ca0f8f [FIX] website_mail, websit_mail_group: moved discussion group snippet to the right module; it should not be available when the mailing list archives module is not installed. Also fixed get_alias_info route to be mail_group specific and to avoid allowing people to browse the database. 2014-05-28 11:12:33 +02:00
Thibault Delavallée 9fadd0b04c [IMP] website_mail_group: display previous / next message when browsing + take into account thread or date mode. 2014-05-23 13:17:33 +02:00
--global 47f24697ec [FIX] website_mail_group: effectively handle replies_per_page parameter that controls the number of replies to display under each message. 2014-05-22 13:38:07 +02:00
--global a6eaa7bac3 [FIX] website_mail_group: email-based author was wrongly placed in the layout 2014-05-22 12:48:32 +02:00
--global 538d97a6b3 [FIX] website_mail_group: better layout for main mailing lists page: more space for subscribe button 2014-05-22 12:25:35 +02:00
Thibault Delavallée 52eb9cba89 [IMP] website_mail_group: refactored layout of displayed mailing lists and their archive. Should be a bit more easy to use and understand. Todo: fix number of displayed thread / replies, and probably re-do the layout once somebody decides to change everything. 2014-05-21 16:32:31 +02:00
Thibault Delavallée f9b18d51ad [FIX] website_mail_group: avoid displaying directly partner info in templates
but use the contact template that display partner-related data fetched
as superuser, to avoid access right issues.
Improved display: author or email-from.
Fixed issues in the pager.

bzr revid: tde@openerp.com-20140326103515-uzv6smwh9q6vyni9
2014-03-26 11:35:15 +01:00
Thibault Delavallée 50ca5202a0 [REF] website_mail_group: refactored controllers and views
- now using post arguments instead of hardcoded path items like mode;
- unfucked the date archives that was basically now working;
- keep user choices through the navigation (mode, dates);
- various small fixes in the views

bzr revid: tde@openerp.com-20140320151114-1mmk9x48i1lwc6qv
2014-03-20 16:11:14 +01:00
Thibault Delavallée 97a6372937 [CLEAN] website_mail: use already-existing template for subscription
instead of copy-and-pasting everything. Please re-use existing things -_-.

bzr revid: tde@openerp.com-20140320090931-r17typzrvvsx03ay
2014-03-20 10:09:31 +01:00
ajay javiya (OpenERP) f2b51c7b69 [FIX] : subscribe/unsubscribe button not work
[IMP]: layout

bzr revid: aja@tinyerp.com-20140318083559-jwc196mypc67p5x4
2014-03-18 14:05:59 +05:30
Fabien Pinckaers d143e09ff5 [IMP] Mailing List Fixes
bzr revid: fp@tinyerp.com-20140316123220-5hq7e3f6p7fzbr96
2014-03-16 13:32:20 +01:00
Fabien Pinckaers 675a71b2b8 [IMP] attachments on messages
bzr revid: fp@tinyerp.com-20140316113742-odae0ph3a1qrqn12
2014-03-16 12:37:42 +01:00
Fabien Pinckaers 9d9e6007fe [IMP] Clean CTA
bzr revid: fp@tinyerp.com-20140316110240-g9esx75vt2qmxcic
2014-03-16 12:02:40 +01:00
Fabien Pinckaers fb64b578e8 [IMP] Cleaning Archives
bzr revid: fp@tinyerp.com-20140316104022-fps64jlo8rpssf9m
2014-03-16 11:40:22 +01:00
ajay javiya (OpenERP) 633ceff7fc [IMP] : join group button is visible to public user if public user will click on join group will ask to login
[IMP] : button color
[ADD] : 'Mailing List' menu in footer

bzr revid: aja@tinyerp.com-20140313092505-yr2uwmxafudtdju9
2014-03-13 14:55:05 +05:30
Fabien Pinckaers a8f130a2a8 [IMP] layout
bzr revid: fp@tinyerp.com-20140312211726-wnho0pedhl4u1qv8
2014-03-12 22:17:26 +01:00
ajay javiya (OpenERP) 79e55a06d6 [IMP] : Group follow/unfollow button not visible without logged in
bzr revid: aja@tinyerp.com-20140311104317-ysrtonu691g7qqek
2014-03-11 16:13:17 +05:30
ajay javiya (OpenERP) 22d1989d6c [ADD] : demo data
bzr revid: aja@tinyerp.com-20140311085626-phkz5012uvwagc94
2014-03-11 14:26:26 +05:30
ajay javiya (OpenERP) 3f25397dfa [IMP] : code
bzr revid: aja@tinyerp.com-20140310114748-gnlktp3dngnccbl3
2014-03-10 17:17:48 +05:30
ajay javiya (OpenERP) a6fdc988ec [ADD] : module website_mail_group
bzr revid: aja@tinyerp.com-20140307132449-zy216yv5kmt3o0zw
2014-03-07 18:54:49 +05:30