Commit Graph

550 Commits

Author SHA1 Message Date
Thibault Delavallée 68545cf6ae [DOC] mail: added some comments.
bzr revid: tde@openerp.com-20130226151531-3zmtcdodmpnh74zh
2013-02-26 16:15:31 +01:00
Thibault Delavallée 53dc52a5c1 [CLEAN] mail_thread: cleaned _get_message_data method. Maybe not the best way, but we tries to avoid using group_by and count because of spurious timing results. Also added some comments.
bzr revid: tde@openerp.com-20130226150707-hzyb8unhsz1i2hh3
2013-02-26 16:07:07 +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
Thibault Delavallée 0193a29335 [REV] auto_subscribe: back. Added setting first email or message as unread for auto subscribed people.
bzr revid: tde@openerp.com-20130222125610-atovl540kvkv0bq7
2013-02-22 13:56:10 +01:00
Thibault Delavallée 95cd6600da [CLEAN] mail: remove print statements, uncommented a line.
bzr revid: tde@openerp.com-20130222094921-yjdc82lm3m9olvqt
2013-02-22 10:49:21 +01:00
Thibault Delavallée 4c98128d11 [IMP] mail: remove auto_follow on user_id field. Replaced by partner suggestion on user_id, based on message_get_suggested_partners called in Chatter. Improved JS code, to handle various case (partner without email, email without partner, partner with email).
bzr revid: tde@openerp.com-20130221184243-pu2tgtlanh34onpr
2013-02-21 19:42:43 +01:00
Thibault Delavallée c0b4bf55d8 [IMP] [CLEAN] mail: incoming emails have an email_from even if an author is found (do not loose data); fixed author subscription, delegated after message creation (otherwise allows to by-pass most of the access rules); code and comments cleaning.
bzr revid: tde@openerp.com-20130221150849-cydhns582qwrqznz
2013-02-21 16:08:49 +01:00
Thibault Delavallée 64fd407f34 [FIX] mail: fixed mail_post_auto_follow; updated tests accordingly.
bzr revid: tde@openerp.com-20130221142417-hnhqrw9q2uf4agos
2013-02-21 15:24:17 +01:00
Thibault Delavallée e6d1208baa [IMP] mail: removed message_post_user_api, now everyone goes through message_post.
bzr revid: tde@openerp.com-20130221132647-kxbzzyo1bbhb67c4
2013-02-21 14:26:47 +01:00
Thibault Delavallée e09eb34a36 [IMP] mail: auto_follow mechanism moved into message_post.
bzr revid: tde@openerp.com-20130221130900-5l9wu6jrqh3l5yar
2013-02-21 14:09:00 +01:00
Thibault Delavallée e7c630a18f [MERGE] Merged branch holding a first cleaning of message_post and message_post_user_api. Cleaning of auto follow will follow. Hahaha.
bzr revid: tde@openerp.com-20130221130153-k8q1u15mh6e4iwzt
2013-02-21 14:01:53 +01:00
Thibault Delavallée 877033e6b9 [CLEAN] mail: message_post: attachment_ids management delegated to message_post, try to avoid having 2 methods doing the same thing.
bzr revid: tde@openerp.com-20130221101515-13bwys3d9akqg4rq
2013-02-21 11:15:15 +01:00
Thibault Delavallée cd13bb9cf9 [CLEAN] mail: stop doing ugly things with partner_ids values before passing values to mail_message.create().
bzr revid: tde@openerp.com-20130221095906-5rbwnc83mjvpkyhh
2013-02-21 10:59:06 +01:00
Thibault Delavallée c3b6408715 [IMP] Chatter: refactoring of 'include new emails/partners' in Chatter compose. It does not create partner everytime; discarding the creation popup discards the creation and addition as recipient.
bzr revid: tde@openerp.com-20130220124923-w3e9hxomniphadj7
2013-02-20 13:49:23 +01:00
Thibault Delavallée cb2e28f59f [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130218090101-ye6f1gslafpg52bc
bzr revid: tde@openerp.com-20130220102822-aik3ywiz8n043e7x
2013-02-20 11:28:22 +01:00
Thibault Delavallée 40234a7a36 [FIX] mail_thread: correctly decode email_from of incoming emails.
bzr revid: tde@openerp.com-20130215110505-yr8leztlwyi3lqme
2013-02-15 12:05:05 +01:00
Thibault Delavallée 48f40c3d6c [MERGE] Sync with 7.0.
bzr revid: tde@openerp.com-20130215110038-gzq9lpwkwdlfbuqq
2013-02-15 12:00:38 +01:00
Olivier Dony 2d8645a722 [MERGE] mail.thread: allow re-entry in message_post in case of cross-model notifications via message_process
bzr revid: odo@openerp.com-20130215103902-xeg14cg2fnn5uz85
2013-02-15 11:39:02 +01:00
Thibault Delavallée 3a8426e5c5 [IMP] mail: message_new in mailgateway is done with nolog context: no 'document created' message.
bzr revid: tde@openerp.com-20130214162011-0xhjo7l5y8733usr
2013-02-14 17:20:11 +01:00
Christophe Matthieu fd315b66f2 [IMP] mail: You have one unread message
bzr revid: chm@openerp.com-20130214143938-aeemq70wl5gnf3k1
2013-02-14 15:39:38 +01:00
Christophe Matthieu b419e8b6c2 [IMP] mail: _get_message_data: display only number of new messages
bzr revid: chm@openerp.com-20130214143417-suf0tyonrewh2a7l
2013-02-14 15:34:17 +01:00
Thibault Delavallée 0d3d15858c [FIX] mail_thread: fixed duplicate emails when replying to an incoming email.
bzr revid: tde@openerp.com-20130214123915-4uxyj0hyy6dw4adu
2013-02-14 13:39:15 +01:00
Olivier Dony 2478d1b221 [FIX] mail.thread: allow re-entry in message_post in case of cross-model notifications via message_process
Previously the `thread_model` key in the context would
cause issues if an incoming message processed by
message_process() triggered another message_post()
call in a different model, because the `thead_model`
would be incorrect in the second call.

bzr revid: odo@openerp.com-20130214120257-c12fkj6pgont9ies
2013-02-14 13:02:57 +01:00
Thibault Delavallée c9e710b5b4 [FIX] mailgateway: author of incoming emails are not put into the recipients anymore.
bzr revid: tde@openerp.com-20130213095942-gwmt2mmthrthca5n
2013-02-13 10:59:42 +01:00
Thibault Delavallée ee6938f794 [FIX] mail gateway: auto_subscribe is always enabled currently, because of leads created usign the mailgateway by-passing the salesteam and user_id auto followers.
bzr revid: tde@openerp.com-20130131121701-eydjfrukxqq246ey
2013-01-31 13:17:01 +01:00
Thibault Delavallée 6ca19ea42e [IMP] mail: auto_subscribe: moved code to find auto_follow fields into a dedicated method that can be overridden.
bzr revid: tde@openerp.com-20130130132723-ktipo8twxwl6v8ei
2013-01-30 14:27:23 +01:00
Thibault Delavallée ccb2a26406 [IMP] mail: added auto_follow mechanism for some tracked fields like 'user_id' that should be relational fileds towards res.users.
bzr revid: tde@openerp.com-20130130090936-l52gq292h8rq79ue
2013-01-30 10:09:36 +01:00
Chris Biersbach a4f560de87 [FIX] partner_id was only present in an else clause and not in the corresponding if. This caused a traceback when the if was executed.
bzr revid: cbi@openerp.com-20130110134240-0jveuv3pnmn75nu1
2013-01-10 14:42:40 +01:00
Thibault Delavallée b9a182ff1a [FIX] OpenChatter: unknown emails becoming followers was not taken into account when using the mail.compose.message wizard.
When having emails not related to a partner in a discussion thread, checkboxes appear that allow to create a partner that will be added as follower to the related document, if any. This now works either in the quik reply box, or the full composer.

bzr revid: tde@openerp.com-20130108165010-hkhd45ube5s081i5
2013-01-08 17:50:10 +01:00
Thibault Delavallée f43e6599e5 [CLEAN] Renamed a method, deleted a now useless comment.
bzr revid: tde@openerp.com-20130108162539-0xtqg98v5por2b95
2013-01-08 17:25:39 +01:00
Thibault Delavallée cf4c6b442e [CLEAN] Some code cleaning.
bzr revid: tde@openerp.com-20130108161332-e1ekhtneh0mryhno
2013-01-08 17:13:32 +01:00
Thibault Delavallée e2d4f6dac6 [FIX] message_post: now handles partner_ids parameter with extra-caution, creating a set of sets. If partner_ids is a list of ids, or a list of commands under list form, this should work as well.
bzr revid: tde@openerp.com-20130108151332-q349tkjsv0fpb0hm
2013-01-08 16:13:32 +01:00
Quentin (OpenERP) 06d08603cc [FIX] mail: when creating a new object from incoming mail, don't call default_get before the call to super(). The create method from the orm is adding default missing value itself. It is also the cause of a bug on stage selection because custom code in create() is not run when stage_id is given in vals (and it's filled here by default_get() but return a wrong value as context cannot be used from incomming mail).
bzr revid: qdp-launchpad@openerp.com-20130108142021-thtla3868hqvqs0o
2013-01-08 15:20:21 +01:00
Christophe Matthieu 10b92b71d8 [IMP] mail: all email checked create a partner and associate the email from
bzr revid: chm@openerp.com-20130108134424-dthns93bf0w59juf
2013-01-08 14:44:24 +01:00
Christophe Matthieu 9c5fad41ba [MERGE] from 7.0-fix-message_post-partner_ids-tde
bzr revid: chm@openerp.com-20130108133754-o652a1gdfwe3obs2
2013-01-08 14:37:54 +01:00
Thibault Delavallée f91fc3b74f [FIX] message_post: now handles partner_ids parameter with extra-caution, creating a set of sets. If partner_ids is a list of ids, or a list of commands under list form, this should work as well.
bzr revid: tde@openerp.com-20130108130716-hea1fomxog5an61r
2013-01-08 14:07:16 +01:00
Christophe Matthieu fee9f63912 [IMP] mail: create new partner with email from
bzr revid: chm@openerp.com-20130108124310-le3hx95yn3jhfhaq
2013-01-08 13:43:10 +01:00
Olivier Dony db0e0cae0b [FIX] mail.thread: decode_header should ignore empty/None header values
bzr revid: odo@openerp.com-20130107111351-72z36e0pjjikpd0e
2013-01-07 12:13:51 +01:00
Thibault Delavallée 459da1fb46 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130104160227-42e2vjrqf443muy4
2013-01-04 17:02:27 +01:00
Christophe Matthieu e40b49a838 [IMP] mail: htmlEntities for the author email, select list of new partner by real email
bzr revid: chm@openerp.com-20130104111004-9l0hb6zu33o5b2v6
2013-01-04 12:10:04 +01:00
Thibault Delavallée df7eb6120c [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130104105657-s8hif4p63oem8ddz
2013-01-04 11:56:57 +01:00
Thibault Delavallée 0170f78af9 [IMP] Improved logger.
bzr revid: tde@openerp.com-20130103173019-8flxl30b129u8kpz
2013-01-03 18:30:19 +01:00
Thibault Delavallée 982cfa5d47 [FIX] message_route: removed owner of created documents using aliases taken from the 'from' of the incoming email, because we cannot ensure that this user has any create or write access rights. If no owner is defined on the alias, uid will be used instead.
bzr revid: tde@openerp.com-20130103172621-4qoz28npnq4c5e7i
2013-01-03 18:26:21 +01:00
Thibault Delavallée 4630af9750 [FIX] fetchmail: fixed message_process on res.users; now having a message_subscribe method, because of automatic subscription of recognized partners on the document; fixed override of message_post in res_partner, using a wrong type variiable; fixed message_post_user_api giving a set instead of a list.
bzr revid: tde@openerp.com-20130103130457-hr1gpj2nj6mp83he
2013-01-03 14:04:57 +01:00
Thibault Delavallée 4aceb1d1be [FIX] fetchmail: fixed message_process on res.users; now having a message_subscribe method, because of automatic subscription of recognized partners on the document; fixed override of message_post in res_partner, using a wrong type variiable; fixed message_post_user_api giving a set instead of a list.
bzr revid: tde@openerp.com-20130103120015-h9tmekrbbettikr1
2013-01-03 13:00:15 +01:00
Thibault Delavallée 272b2347e6 [FIX] get_reply_to: fixed False value, also returning an array.
bzr revid: tde@openerp.com-20130102135020-s9ssadzms5s8f0hp
2013-01-02 14:50:20 +01:00
Thibault Delavallée c33dff10f1 [IMP] mail: send emails now have a reply_to based on aliases, if defined, and if not reply_to already defined in the mail.mail object.
bzr revid: tde@openerp.com-20130102130025-5wa2k8wzv1vgg2xx
2013-01-02 14:00:25 +01:00
Thibault Delavallée 35139325d7 [IMP] mail: message_track: better display of changes for boolean values (notably for notes). Renamed a var.
bzr revid: tde@openerp.com-20121227113405-j1zgltx22i2vzqdb
2012-12-27 12:34:05 +01:00
Thibault Delavallée d28418f6e4 [FIX] message_post_user_api: fixed subscribe.
bzr revid: tde@openerp.com-20121221152956-h400n3w8hgxleumm
2012-12-21 16:29:56 +01:00
Thibault Delavallée 1ab87ddd67 [CLEAN] Misc code cleaning.
bzr revid: tde@openerp.com-20121221145247-qqd1a1morv99ooow
2012-12-21 15:52:47 +01:00