Commit Graph

96 Commits

Author SHA1 Message Date
Cedric Snauwaert 724cbb6dee [FIX]mail_followers: signature at the end of mail should be "sent by" and not "send by"
bzr revid: csn@openerp.com-20130429092532-3h31kduga1h0chbb
2013-04-29 11:25:32 +02:00
Thibault Delavallée 6f72fe3235 [FIX] mail: translate issue
bzr revid: tde@openerp.com-20130325151259-dghrblczpge5kgpr
2013-03-25 16:12:59 +01:00
Thibault Delavallée 40a5dda617 [MERGE] Forward port of addons until 8903
bzr revid: tde@openerp.com-20130321093716-3nt7h2xunl8lusqh
2013-03-21 10:37:16 +01:00
Thibault Delavallée bbc98169c3 [FIX] mail: notification emails were lacking references to their parent message.
bzr revid: tde@openerp.com-20130320121633-plhgm5374w2koem1
2013-03-20 13:16:33 +01:00
Thibault Delavallée 6bbc658f9b [FIX] mail: fixed wrong var name in notify; fixed a missing email in tests.
bzr revid: tde@openerp.com-20130318131919-31zdc7309c4zt8xj
2013-03-18 14:19:19 +01:00
Thibault Delavallée 7e696dfdcb [MERGE] Sync with trunk and latest mail changes.
bzr revid: tde@openerp.com-20130318122027-l570iyzlljshz4ne
2013-03-18 13:20:27 +01:00
Thibault Delavallée 5d59401b91 [MERGE] Sync with trunk, tried to resolve the conflicts without breakign everything.
bzr revid: tde@openerp.com-20130315120759-sf1o1sd80ycuuy7n
2013-03-15 13:07:59 +01:00
Thibault Delavallée 4484a3197c [MERGE] Sync with trunk, resolved conflicts due to forward port of 7.0
bzr revid: tde@openerp.com-20130315114338-54scb00rkp7zwr30
2013-03-15 12:43:38 +01:00
Thibault Delavallée 627ebc4a73 [CLEAN] mail_followers: cleaned code of get_signature_footer: same feature, but a bit less code.
bzr revid: tde@openerp.com-20130315110455-7ho0djpjlkbap6l1
2013-03-15 12:04:55 +01:00
Thibault Delavallée 2ca8ff41c3 [CLEAN] mail_followers: removed print statements.
bzr revid: tde@openerp.com-20130314110223-18torul5eoih6m5e
2013-03-14 12:02:23 +01:00
Christophe Matthieu 07559b253a [IMP] mail_followers: add a comment for get_signature_footer
bzr revid: chm@openerp.com-20130313160310-pgckns8w6gb7cqus
2013-03-13 17:03:10 +01:00
Thibault Delavallee 5773d310e9 [FIX] mail: notification: do not send a notification email to partners having the same email address than the author, because of loops it may cause.
bzr revid: tde@openerp.com-20130312142257-sbtv2f3u9lobj6w5
2013-03-12 15:22:57 +01:00
Thibault Delavallée be5ccc7805 [REM] mail: removed opt-out management.
bzr revid: tde@openerp.com-20130306143125-4p4zretkzjpv0jn8
2013-03-06 15:31:25 +01:00
Thibault Delavallée aa054ebb74 [REV] mail: reverted commit 8802. Reason: opt-out will be used only for marketing campaigns; notification_email_send for emails.
bzr revid: tde@openerp.com-20130306142741-ghazensh58xw3rvu
2013-03-06 15:27:41 +01:00
Thibault Delavallée 787305a6ce [IMP] mail: notifications: handle opt-out parameter.
bzr revid: tde@openerp.com-20130305151312-xkylrhhlsf6l44yj
2013-03-05 16:13:12 +01:00
Thibault Delavallée b2ebd26e8c [FIX] mail: handle opt_out parameter. Please see comment in code for more info.
bzr revid: tde@openerp.com-20130306075852-dyaynwq0r1otrxx1
2013-03-06 08:58:52 +01:00
Thibault Delavallée 6c3aa520c7 [IMP] mail_followers: improved _notify, to better manage notifications. An optional (to provide compatibility) parameter has been added, that allows to notify partners of a given messages. It checks whether a notification already exists, setting it back as unread, or create a notification pushed by email.
bzr revid: tde@openerp.com-20130226105755-gvkn1ocpwkcndzpl
2013-02-26 11:57:55 +01:00
Christophe Matthieu c81f9536a5 [MERGE] from trunk
bzr revid: chm@openerp.com-20130226105528-oc73iis3eyuft4f9
2013-02-26 11:55:28 +01:00
Thibault Delavallée 0aaca4daa9 [IMP] mail: improved mass mailing. Correctly take into account email_to, email_cc, partner_to even if no template. Mass mailing is a no-subtype post with additional recipients manually notified. Added option (in technical features) to send to followers, or to directly create a mail_mail. Added some default values in mail_message. Added explicit management of email_from and reply_to. Having a reply_to bypasses the 'model-res_id' in message_id behavior allowing to construct threads. Added explicit recipient_ids field on mail_mail that replaces the recipient_ids parameter in mail_mail.send(). Updated tests accordingly.
bzr revid: tde@openerp.com-20130225164857-i635atksj7riq9nd
2013-02-25 17:48:57 +01:00
Christophe Matthieu 46c52b0650 [IMP] mail: signature
bzr revid: chm@openerp.com-20130131162814-93chvgsc4xorh3g2
2013-01-31 17:28:14 +01:00
Thibault Delavallée 1ef967e5aa [FIX] mail: notification email: email_from is now correctly set (alias of the author if user and alias configured; author email; or email_from of the mail.message).
bzr revid: tde@openerp.com-20130130134447-nu4lt7jb7db5aprh
2013-01-30 14:44:47 +01:00
Thibault Delavallée 443ab6ed73 [IMP] mail: when pushing to myself, now sends email according to normal rules.
bzr revid: tde@openerp.com-20130129160752-q8zgixlzkfb9cm1s
2013-01-29 17:07:52 +01:00
Christophe Matthieu b7b969d6fa [IMP] mail_followers: get_signature_footer and test
bzr revid: chm@openerp.com-20130129142949-po3hv5utdxsfb99v
2013-01-29 15:29:49 +01:00
Christophe Matthieu 468fed66be [IMP] mail: add a method get_signature_footer to add a good signature on bottom of messages sent with the chatter and invite followers
bzr revid: chm@openerp.com-20130124094241-k9ophrwqhne611il
2013-01-24 10:42:41 +01:00
Thibault Delavallée 57eb08beab [REM] mail_followers: removed unnecessary code about notifications for messages we cannot read, because this makes no sense with our access rules (you see when you have a notification -> mutualy exclusive).
bzr revid: tde@openerp.com-20121227164425-gvxrcq5rgk51k532
2012-12-27 17:44:25 +01:00
Fabien Pinckaers 43f6e3e3e4 [IMP] fix for demo: failed outgoing emails should not stop operations
bzr revid: fp@tinyerp.com-20121221194148-71s67sj32bym7lro
2012-12-21 20:41:48 +01:00
Thibault Delavallée 86200b4d9c [DOC] [IMP] mail_thread: updated documented the few magic context keys, mail_notify_noemail, mail_create_nosubscribe and mail_create_nolog.
bzr revid: tde@openerp.com-20121219171501-5ndw7aawi8kvttql
2012-12-19 18:15:01 +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 5f008a69a6 [IMP] mail: small code cleanup, added some comments.
bzr revid: tde@openerp.com-20121214104810-kpmnwii14ghdaksd
2012-12-14 11:48:10 +01:00
Thibault Delavallée 45e1682327 [FIX] [CLEAN] mail: fixed some access rules issues; removed now unused files.
bzr revid: tde@openerp.com-20121211143301-b52ji02vynvgo3m9
2012-12-11 15:33:01 +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
Thibault Delavallée a7650e0e45 [IMP] mail_notification: updated the index on mail_notification, including newly added field starred.
bzr revid: tde@openerp.com-20121205140607-f1hnhgu49tc2jwr5
2012-12-05 15:06:07 +01:00
Thibault Delavallée a123d95dca [IMP] mail_message: star feature is now on mail.notification. A starred message has a notification with starred=True. favorite_user_ids many2many field disappear. _search_to_read and _search_starred replaced by returning a domain on the notifications. Using auto_join, this should speedup chatter a lot. Updated tests accordingly (should be updated a bit more than that, though). Updated JS. Updated mailboxes domains, as to_read and starred already contain a reference to the pid.
bzr revid: tde@openerp.com-20121129113025-rizon3eaf14vrla2
2012-11-29 12:30:25 +01:00
Thibault Delavallée 5afe27095f [FIX] mail_followes: signature addition is back, wrong var name.
bzr revid: tde@openerp.com-20121114111104-0jyqh2v0tk7zznc1
2012-11-14 12:11:04 +01:00
Thibault Delavallée ae2e2298dc [REV] mail_followers: context in send email is commented, because not ready yet.
bzr revid: tde@openerp.com-20121114105252-3eberdfvobrtthk6
2012-11-14 11:52:52 +01:00
Thibault Delavallée fbccb823f8 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121112161523-yfp1dczcnmi85t8e
bzr revid: tde@openerp.com-20121114083900-qw40e8ii1rfl7gt1
2012-11-14 09:39:00 +01:00
Thibault Delavallée 2c38ef053e [IMP] mail_notification: added some indexes.
bzr revid: tde@openerp.com-20121112131759-1jzo3ff5r1tfghus
2012-11-12 14:17:59 +01:00
Thibault Delavallée acb1156ee5 [FIX] mail: fixed bug adding signature of partners without users, therefore without signature field; fixed message_id of mail.message without model,res_id, that were not granted a message_id, therefore generated when sending a mail.mail, therefore breaking parent relationship based on message_id. Also fixed content_subtype of message coming from message_process.
bzr revid: tde@openerp.com-20121108164138-8jp2340t6s2sa9hd
2012-11-08 17:41:38 +01:00
Thibault Delavallée 4ec824ffe2 [FIX] mail: fixed set_message_read that was broken.
bzr revid: tde@openerp.com-20121108143545-evxm9kwq4re33ylk
2012-11-08 15:35:45 +01:00
Thibault Delavallée 3027b749ba [IMP] mail: signature in send notifications is now plaintext (as before), but htmlized (not inside a pre, but inside div and p, with entities escaped). Updated mail tests. Same for portal URL. Updated portal tests.
bzr revid: tde@openerp.com-20121107170241-0gjwraxkuhe0fm6p
2012-11-07 18:02:41 +01:00
Thibault Delavallée 281a4d0801 [FIX] mail: notifications: fixed access rights issues when setting as read/unread for lambda users.
bzr revid: tde@openerp.com-20121107153822-j7f1a63a2ix66e5n
2012-11-07 16:38:22 +01:00
Thibault Delavallée d97ffd7b19 [CLEAN] Misc cleaning of code: removed debug statements, added some notes.
bzr revid: tde@openerp.com-20121029112117-kup1q99c2nbkgar7
2012-10-29 12:21:17 +01:00
Thibault Delavallée 9014be7ca4 [CLEAN] mail: cleaned code before merging, removed debug and print statements.
bzr revid: tde@openerp.com-20121026123604-l4j4e1ta26hw6fur
2012-10-26 14:36:04 +02:00
Thibault Delavallée dd5961816c [REV] Reverted use of quote_context in mail formation. Methods are still there, but will be improved in a future branch.
bzr revid: tde@openerp.com-20121026114114-4uar0usx7jzhl6rv
2012-10-26 13:41:14 +02:00
Thibault Delavallée daeccb5ab2 [IMP] mail: added a quote context to email notifications. This is a first basic implementation with a dummy template that will have to be improved. Updated tests. TOFIX: some of the tests will have to be cleaned a bit.
bzr revid: tde@openerp.com-20121026113336-s18129kmn2df4lhs
2012-10-26 13:33:36 +02:00
Thibault Delavallée 6031c0954b [REM] mail_followers: removed WIP about email quote.
bzr revid: tde@openerp.com-20121026095934-4qumgad7dun75ct8
2012-10-26 11:59:34 +02:00
Thibault Delavallée e1bbbad62f [IMP] mail: ancestor_id -> back to parent_id; message_post force the parent to be the oldest ancestor.
bzr revid: tde@openerp.com-20121026080005-ns2vicwdksr515ll
2012-10-26 10:00:05 +02:00
Thibault Delavallée a013e6e62f [IMP] [WIP] mail: expandables now limited to one level (using a child_of based domain); simplified code. message_read updated to fetch the oldest possible ancestor, not all direct parents. Updated some tests. Still WIP, will be continued tomorrow.
bzr revid: tde@openerp.com-20121022164638-gqe5af1uxvl5h043
2012-10-22 18:46:38 +02:00
Thibault Delavallée fe93cea517 [IMP] mail: added to_read field on mail.message, based on unread notifications. When setting a notification as (un)read, it now creates a notification if it does not exist.
bzr revid: tde@openerp.com-20121017155733-8gpb5goyiomsop2x
2012-10-17 17:57:33 +02:00
Thibault Delavallée e72afca929 [CLEAN] mail_followers: cleaned set_message_read code.
bzr revid: tde@openerp.com-20121016075719-qba8zt9gp6lvwmpn
2012-10-16 09:57:19 +02:00