Commit Graph

145 Commits

Author SHA1 Message Date
Thibault Delavallée d4a1eb4435 [FIX] mail, mail_group: recipients of mail groups
Mailing lists (mail.group) should not send specific notification emails.
Indeed there can be a lot of recipients and customizing each email can
take time to compute. This leads to posting a message on a mail.group
being very slow.

It is now possible for a model to customize the notification email
recipients computation. The first use is to ensure that mail.group
encodes recipients using email_to instead of recipients_ids. This way
less processing is performed on notification emails.
2015-12-11 11:22:40 +01:00
Olivier Dony 34cc064400 [IMP] mail.mail: simplify: no default for `headers` field
This avoids storing useless "{}" values
in the database when there are no headers,
and avoids having to update all existing
entries when this column is added.
Just requires simple tests before evaluating
the headers contents.
2014-08-11 16:32:36 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Olivier Dony a7d3735915 [IMP] mail.group: set special header to disable OOF replies from MS Exchange 2014-07-17 12:33:55 +02:00
Olivier Dony 562d8129f2 [FIX] mail: less confusing To: header for mailing-list posts
Many mail clients will replace the name in the To:
header with Me if the To: email matches the email
of the user. These users will see To: Me instead of
"Followers of ..." and usually believe this was a
private email from the sender to them.
But when replying they would reply to the whole list.

Fix this by explicitly forcing the To: to be the
mailing list address.
2014-07-17 00:16:12 +02:00
Christophe Simonis a5419ca800 [MERGE] forward port of branch saas-5 up to e0759c1 2014-07-15 11:21:59 +02:00
Olivier Dony e31fd6a1e1 [MERGE] Fwd-port saas-3 up to a9d2b65 2014-07-11 11:53:07 +02:00
Olivier Dony a9d2b65da5 [MERGE] Fwd-port 7.0 up to 783b9e1 2014-07-11 11:51:06 +02:00
Anand-Dharampuriya 5cbc611361 [FIX] Solve some mail issues which are currently present in 7.0 2014-07-10 16:29:54 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +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
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Thibault Delavallée f62f58174b [IMP] mail: added headers field on mail.mail, allowing to store headers data when sending notification emails. 2014-06-23 09:11:01 +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
Thibault Delavallée 2bc87a67eb [IMP] mail_group: as they are now mailing list, avoid having automatic
creation message, this is quite ugly.

bzr revid: tde@openerp.com-20140320150855-a0ich2zgzn320wj0
2014-03-20 16:08:55 +01:00
Christophe Simonis 3fa90321e1 [MERGE] forward port of branch saas-1 up to revid 8772 chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: chs@openerp.com-20130910124803-wxkb8gkz1tub5qjf
2013-09-10 14:48:03 +02:00
Olivier Dony baef4d3d92 [FIX] Force safer ondelete=restrict on the `alias_id` _inherits FK on models with a mail.alias parent
The delete-rule was initially set to `cascade` in revision
6897.16.13 revid:odo@openerp.com-20120705141706-5gm5mmqode3bvkuc
because the ORM would not allow anything else for the FK of
an _inherits relationship.
This constraint was later lifted in 7.0 server at revision
4681 revid:odo@openerp.com-20121212210247-emrz5rf9ewcwdggu
so we can now switch to the intended default behavior:
when deleting mail aliases we never want to cascade delete
the child records, as that could lead to unwanted deletions.
On the other hand the aliases are automatically deleted when
the record they belong to is deleted, as a kind of internal
dependency. This is the intended safe way to delete them.

There is a special case when the same alias is manually set
on multiple records, in which case you will not be able to
delete any of those records. This is an acceptable exception
and should be manually handled if ever needed, by temporarily
linking the records to delete to new dummy aliases.

bzr revid: odo@openerp.com-20130827150708-62hqk8p7twd527n0
2013-08-27 17:07:08 +02:00
Thibault Delavallée fc44f25d3a [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130612123429-a4mp0wiicdhlvk0m
2013-06-12 14:34:29 +02:00
Thibault Delavallée 88e3505554 [IMP] mail_alias: added reference to the parent record.
The parent record is the record that holds the alias. It is different
from the record updated or created using the alias. For example
projects have aliases whose parent is the given projet, and that creates
new task inside the project.
Updated alias creation and management accordingly.
This ownership concept is used to compute the 'followers' contact
settings of aliases.

bzr revid: tde@openerp.com-20130516164207-1zr0q6abw6a34ndf
2013-05-16 18:42:07 +02:00
Thibault Delavallée a3de5c872f [REF] [IMP] mail_alias improvement
alias_name is not required anymore
crm, hr_job, project, mail_group, res_users: alias creation is now different
and done more like other inherits, except an alias_model_name that is given
to the context to find the alias alias_model_id.
crm, jr_job, project, mail_group, res_users: updated form views using
aliases
mail_alias: added a filter on 'inactive' aliases (alias_name False) and
added a button to redirect to the related document if any

bzr revid: tde@openerp.com-20130409111158-bv04n5o01z9l3c17
2013-04-09 13:11:58 +02:00
Martin Trigaux b9352e9eea [MERGE] Latest trunk
bzr revid: mat@openerp.com-20130405141758-2a0nzmg8cbwe7145
2013-04-05 16:17:58 +02:00
Martin Trigaux 52ddce88f3 [ADD] option to globally stop showing employeep suggestions
bzr revid: mat@openerp.com-20130403152443-3jqg0v182mcqsk0f
2013-04-03 17:24:43 +02:00
Martin Trigaux 46110fbf29 [ADD] option to globally stop showing group suggestions
bzr revid: mat@openerp.com-20130403151056-4vjno2k9n77drm6y
2013-04-03 17:10:56 +02:00
Martin Trigaux 851e6c1f5a [REF] cleaning js code
bzr revid: mat@openerp.com-20130403122408-fbbybeczf6xqwjvc
2013-04-03 14:24:08 +02:00
Martin Trigaux 5a112d8fa2 [ADD] suggested groups
bzr revid: mat@openerp.com-20130328161634-1fcmj0s67bofc6ra
2013-03-28 17:16:34 +01:00
Thibault Delavallée 142ef3856b [CLEAN] mail_group: cleaned added code, no need to pass an explicit description parameter as we have a browse object on an actualized record.
bzr revid: tde@openerp.com-20121224134814-g3mxb979x0ioaqbc
2012-12-24 14:48:14 +01:00
Thibault Delavallée 82fbb9411a [IMP] mail.group: updated client action description when writing on description, name, or the alias.
bzr revid: tde@openerp.com-20121224131922-v3rzft5mma8ppy1f
2012-12-24 14:19:22 +01:00
Thibault Delavallée 68872e1175 [IMP] mail.group decription: take into account void descriptions.
bzr revid: tde@openerp.com-20121224123215-ll9ejzuqrpik3ks5
2012-12-24 13:32:15 +01:00
Thibault Delavallée 1ba1a37850 [IMP] mail.group: add the group email gateway in the client action description.
bzr revid: tde@openerp.com-20121224115703-zl4y62qgmyk3x7z7
2012-12-24 12:57:03 +01:00
Thibault Delavallée 07099455fc [MERGE] [FIX] mail_group: usability fix. The 'Wall view' of
mail groups now displays all messages (removed 'Unread' filter).
It also displays a composition box, not 'Send a message or Log a note'
as the purpose of a mail.group is to share with other members.

bzr revid: tde@openerp.com-20130327110520-nja6273v5ozdt49j
2013-03-27 12:05:20 +01:00
Thibault Delavallée 6b893e4a1a [FIX] mail_group: fixed client action, no more Unread messages, send or log -> composition box with a correct message.
bzr revid: tde@openerp.com-20130327095822-m3m2jiwpsa6y5qvi
2013-03-27 10:58:22 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Thibault Delavallée 62d9ce4cce [REM] mail_group: removed unused method.
bzr revid: tde@openerp.com-20121214115032-de2w9jnnigkjuojn
2012-12-14 12:50:32 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Christophe Matthieu 52da4b041c [IMP] mail_group: remove inherits of ir.ui.menu form mail_group to improve managment of access rights.
bzr revid: chm@openerp.com-20121206121409-z04iygrv34png4aj
2012-12-06 13:14:09 +01:00
Christophe Matthieu 010def466f [IMP] mail: create test for access rules. fix the create group: add user in follower and remove admin
bzr revid: chm@openerp.com-20121206102714-tm0w6bn234a2j4fn
2012-12-06 11:27:14 +01:00
Thibault Delavallée 99c1145d81 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121115131824-60tl5f9hvxpca827
bzr revid: tde@openerp.com-20121115181930-ypj3zbdhg9bvcdf5
2012-11-15 19:19:30 +01:00
Fabien Pinckaers d530905b93 [IMP] Add default filter on groups
bzr revid: fp@tinyerp.com-20121115102223-i2jgjkgqf9pxez08
2012-11-15 11:22:23 +01:00
Thibault Delavallée b387836284 [IMP] mail.group: updating the descrpition, also update the description in the params of the client action related to the mail group.
bzr revid: tde@openerp.com-20121114163007-91z50xmkepnc436l
2012-11-14 17:30:07 +01:00
Thibault Delavallée 7fc4f67e4c [FIX] mail.group: fixed a description key not always present in mail.group creation.
bzr revid: tde@openerp.com-20121114134356-5lbdx1tciw8tz2w0
2012-11-14 14:43:56 +01:00
Christophe Matthieu a43662d125 [IMP] mail: change the header title and description for each mailbox and group discussion
bzr revid: chm@openerp.com-20121114122033-dl70fqty2kbd5gj1
2012-11-14 13:20:33 +01:00
Fabien Pinckaers 1086c96272 fix
bzr revid: fp@openerp.com-20121112232043-igpq4xynsz2tg6xr
2012-11-13 00:20:43 +01:00
Fabien Pinckaers 79827cefd5 [FIX] group orders
bzr revid: fp@openerp.com-20121112231952-x2713c3gs0b5ikhp
2012-11-13 00:19:52 +01:00
Thibault Delavallée e915bd83cb [IMP] mail_thread: remove message_subtype_data field, not used anymore; message_is_follower is not computed with message_follower_ids. Updated mail_followers widget, as message_is_follower is barely never used in views. Updated tests.
bzr revid: tde@openerp.com-20121016111753-shhyhred0m210o1z
2012-10-16 13:17:53 +02:00
Thibault Delavallée ad54dfbbf6 [FIX] [CLEAN] mail_thrad: fixed subtypes (not comment by default, but Chatter explicitely set the new message as a comment); some code cleaning.
bzr revid: tde@openerp.com-20121015132313-zmip3v7sv4y90lzr
2012-10-15 15:23:13 +02:00
Fabien Pinckaers 486055417d [FIX] tests fixes + compose + no parent_id on groups and partners
bzr revid: fp@tinyerp.com-20121001182722-0971qc2ccp3noe2c
2012-10-01 20:27:22 +02:00
Fabien Pinckaers 728d749259 [FIX] auto-subscribe on groups after write
bzr revid: fp@tinyerp.com-20121001164414-6yfzkhs4gwjvdh3a
2012-10-01 18:44:14 +02:00
Quentin (OpenERP) c6f366b3bb [IMP] mail, polishing last fp commit: replaced '1' in method calls by SUPERUSER_ID + added comment
bzr revid: qdp-launchpad@openerp.com-20120925094856-zxm1ppx5xk8iropn
2012-09-25 11:48:56 +02:00
Fabien Pinckaers 0272743218 [FIX] group creation by normal employees
bzr revid: fp@tinyerp.com-20120925083811-mroiaj30jnc2y9yr
2012-09-25 10:38:11 +02:00
Thibault Delavallée 02668c3682 [IMP] mail_group: when deleting a mail_group, delete also the related menu entry.
bzr revid: tde@openerp.com-20120913093246-kkxjqspupbq7j7z8
2012-09-13 11:32:46 +02:00