Commit Graph

168 Commits

Author SHA1 Message Date
Denis Ledoux e10270d153 [FIX] mail: traceback when mass mailing with several partners and removing default template (or any template without reply_to)
bzr revid: dle@openerp.com-20140125102840-7z2w2na7pmy2kda0
2014-01-25 11:28:40 +01:00
Thibault Delavallée 4468d52283 [DOC] mail: cleaned a comment
bzr revid: tde@openerp.com-20131126121649-nywrh4hc1mcpwleh
2013-11-26 13:16:49 +01:00
Thibault Delavallée 974675bcbf [FIX] mail: attachments encoding issue: posting process
waits not encoded attachments: email_template encodes them. So de-encoding
is necessary.

bzr revid: tde@openerp.com-20131126120336-5lcp9ii7z9lru5vr
2013-11-26 13:03:36 +01:00
Thibault Delavallée cf214ed724 [FIX] mail: when generating pure email mass mailing
we have to process attachments as well as attachment_ids in the values generated
by the composer and the optional template.
As this behavior is the same as the one already implemented for message_post, this
feature has been moved into its dedicated method to be called by message_post
or before calling mail_mail.create().
This also allows to have attachments in pure email mass mailing that are attached
to mail.message, not to mail.compose.message model. When unlinking those emails,
the attachments will be also removed, and not lost in the database anymore.

bzr revid: tde@openerp.com-20131126110942-h8p0d9sbjtk0hwlu
2013-11-26 12:09:42 +01:00
Thibault Delavallée 41ca7536e0 [FIX] mail: when performing pure email mass mailing
attachments were not formatted as a m2m command but a list
of ids. This is now fixed.

bzr revid: tde@openerp.com-20131126095632-txuy00xc1cmqjqcn
2013-11-26 10:56:32 +01:00
Thibault Delavallée f8922d6b16 [IMP] [ADD] mass_mailing: added a wizard to create new segments.
It can be called directly from within the campaign form view, using a button.
It allows to easily create new segments and launch the composer.

bzr revid: tde@openerp.com-20130912100909-ofalececxn64a389
2013-09-12 12:09:09 +02:00
Thibault Delavallée c063f54691 [IMP] mail: in mass mail mode, default value is now to send emails, not to perform a mass post on documents.
bzr revid: tde@openerp.com-20130910124754-jssus6l43nil4qad
2013-09-10 14:47:54 +02:00
Thibault Delavallée 38e75127d9 [MERGE] Syn with trunk
bzr revid: tde@openerp.com-20130906081534-n273weq3h1fvfh2b
2013-09-06 10:15:34 +02:00
Thibault Delavallée 9ef46123a6 [IMP] mail.compose.message, email.template: rendering is now done in batch.
Also refactored send_mail in mail.compose.message in order to be able to override
mail values without having to intefere with the send_mail behavior.

bzr revid: tde@openerp.com-20130828140929-xe9hbmbo6jxgs9mh
2013-08-28 16:09:29 +02:00
Atul Patel (OpenERP) 1a382f268c [MERGE]: Merged with addons
bzr revid: atp@tinyerp.com-20130812043810-y14dmqwvuxrxkuag
2013-08-12 10:08:10 +05:30
Thibault Delavallée fa7fc1277b [FIX] mail_compose_message: keep empty domains
bzr revid: tde@openerp.com-20130726104342-8o5s2k85d7sjuwoy
2013-07-26 12:43:42 +02:00
Thibault Delavallée 91ef7de709 [IMP] mail: better implementation of active domain / use active domain
bzr revid: tde@openerp.com-20130725135029-mx946vaibvz1rzii
2013-07-25 15:50:29 +02:00
Atul Patel (OpenERP) 7810f03c56 [REM]: Remove unused space
bzr revid: atp@tinyerp.com-20130725073354-uq3b2r0io1wsbdku
2013-07-25 13:03:54 +05:30
Atul Patel (OpenERP) 2706328ca4 [IMP] mail: Pass current user partner id into datasets and get it into template. add author also for private mail.
bzr revid: atp@tinyerp.com-20130725071939-9lmuhfgte987nu03
2013-07-25 12:49:39 +05:30
Thibault Delavallée f1f2b2ba06 [IMP] mail: mail.message now has mail_server_id from template_id.
bzr revid: tde@openerp.com-20130722131725-i30xd4b03nui3hyw
2013-07-22 15:17:25 +02:00
Thibault Delavallée db0cd38559 [IMP] mail.compose.message: now proposes to work on active_domain
bzr revid: tde@openerp.com-20130722112306-r1u77tyqzk4bknrb
2013-07-22 13:23:06 +02:00
Thibault Delavallée a1e942c0de [FIX] mail.compose.message: fixed reply_to from template in mass mailing.
bzr revid: tde@openerp.com-20130606142814-jyw76nhaeivotu6k
2013-06-06 16:28:14 +02:00
Thibault Delavallée 72f6a8c646 [FIX] mail.compose.message: supports user_signature of template. Note that in case of multiple wizards (send on ids that is not a singleton list), user_signature on one template is valid for all wizard.
bzr revid: tde@openerp.com-20130606123724-f7q3mwm81ek7mr5c
2013-06-06 14:37:24 +02:00
Thibault Delavallée a216e70e85 [FIX] [IMP] mail: allow to use message_post on models not having message_post method defined.
mail.compose.message wizard and messaage_process now check that the active model
has message_post defined. Otherwise using thread_model context key that is better
managed in message_post, it is possible to use mail_thread.message_post() with a
thread_model and thread_id that should not allow message_post otherwise.

Hint: look for backport into 7.0

bzr revid: tde@openerp.com-20130606123230-d7ql14yydzfrlc7h
2013-06-06 14:32:30 +02:00
Thibault Delavallée 9c57f6e1cd [FIX] mail: various fixes
Mass mailing: emails due to mass mailing are not queued instead of sent immediately.
As most of cases go through mail_followers._notify(), a new argument is added that
allows to control the force_send (like what is done in email_template).
Chatter: better display of recipients when having a message_post due to mass mailing
(not always displaying logged a note).
Notified people: when having no subtype, just avoid notifying the followers but
take into account specified recipients (partner_ids).

bzr revid: tde@openerp.com-20130606102437-43s4xp96b5wa3r1q
2013-06-06 12:24:37 +02:00
Thibault Delavallée dc858b099e [FIX] mail.compose.message: when sending emails using mass mailing without doing a message_post (aka, pure email mass-mailing), the body of the mail.compose.message was not copied into the body_html of the mail.mail.
bzr revid: tde@openerp.com-20130529095900-b1koa0000wh3bg0d
2013-05-29 11:59:00 +02:00
Thibault Delavallée 4da68cbc22 [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-11 14:44:46 +02:00
Thibault Delavallée 9e4486ae52 [FIX] mail: fixed missing conflict resolution
bzr revid: tde@openerp.com-20130411104659-ik62af6wubzu5j6q
2013-04-11 12:46:59 +02:00
Thibault Delavallée fe2ea997a2 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130411103645-rmr3sa8p9ropx2gc
2013-04-11 12:36:45 +02:00
Raphael Collet 894eeef8e0 [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073708-gaxl2332umtedmg6
2013-04-11 09:37:08 +02:00
Quentin (OpenERP) 3bb51ac696 [MERGE] forward port of bugfixes made in 7.0, up to revision 8969.
bzr revid: qdp-launchpad@openerp.com-20130404095257-oek77sijuxjyi0aj
2013-04-04 11:52:57 +02:00
Raphael Collet 96ad608854 [IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-29 15:37:20 +01:00
Thibault Delavallée f6b713f1ee [FIX] mail: fixed errors trigerred by improved mail tests and last trunk modifications.
bzr revid: tde@openerp.com-20130321102151-qk1vf3iwhzd23k3s
2013-03-21 11:21:51 +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 db5f32bb46 [CLEAN] mail: cleaned code of last fixes
bzr revid: tde@openerp.com-20130320141907-rxnstq7k8hrkcnl1
2013-03-20 15:19:07 +01:00
Thibault Delavallée 5d25e9d780 [FIX] mail_compose_message: fixed mass_mail subscribing the author to all documents, not the case anymore; fixed access rule on mail_compose_message not taking into account the wizard creation in mass_mail_mode (model but no res_id -> could lead to crash).
bzr revid: tde@openerp.com-20130320135013-mryxzwssd346t78y
2013-03-20 14:50:13 +01:00
Thibault Delavallée 2c497fab50 [FIX] mail: mass mailing now does not push to followers; only to specific recipients. Improved tests for this update.
bzr revid: tde@openerp.com-20130320084040-pcgzy068z0oph298
2013-03-20 09:40:40 +01:00
Thibault Delavallée acb14cdead [FIX] mail: fixed issues with partner_ids now being a list of ids and not a list of commands anymore.
bzr revid: tde@openerp.com-20130318154923-svnh1h6sm06nrbt6
2013-03-18 16:49:23 +01:00
Thibault Delavallée 660b94845a [IMP] mail_compose_message: mass mailing does not auto_subscribe author anymore.
bzr revid: tde@openerp.com-20130315124009-xgfwr5xuxe1fhrut
2013-03-15 13:40:09 +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 8a95e1886e [FIX] mail_compose_message: remove some keys from the context, as they conflict with mail_mail values.
bzr revid: tde@openerp.com-20130314110344-w5ashhs3jc1oslzp
2013-03-14 12:03:44 +01:00
Thibault Delavallee d7e5763dcb [IMP] mail, email_template: improved mass mailing action (renamed, now using a well defined template) + improved form view of mail.compose.message wizard.
bzr revid: tde@openerp.com-20130312133817-y9xztv6gs4ut7ndj
2013-03-12 14:38:17 +01:00
Thibault Delavallée 40244df4c1 [IMP] mail.compose.message: copied attachments in mass mail mode are linked to the composer, because message_post will update their model and res_id.
bzr revid: tde@openerp.com-20130306161151-gczob78pmt683kw7
2013-03-06 17:11:51 +01:00
Thibault Delavallée b1b3ed971a [REM] Removed attachment removal because garbage collecting will do it.
bzr revid: tde@openerp.com-20130306160517-b0rdbait2h6c9c77
2013-03-06 17:05:17 +01:00
Thibault Delavallée d794920d43 [IMP] mail.compose.message: remove attachment_ids from render_message as it should not be there; assume wizard.attachment_ids is always correct.
bzr revid: tde@openerp.com-20130306134437-ywoi1p1nr2e1no97
2013-03-06 14:44:37 +01:00
Thibault Delavallée f7484297d9 [CLEAN] mail.compose.message: some cleaning in new fields strings, and in form vivew.
bzr revid: tde@openerp.com-20130305124259-x3vb5ds2xi9v389d
2013-03-05 13:42:59 +01:00
Thibault Delavallée c7d8842b02 [IMP] mail, email_template: fixed attachment management (template does not override provided attachments anymore; fixed possible unexisting attachment ids key; fixed some duplication.
bzr revid: tde@openerp.com-20130304092248-mqadzmrhgdu58j8y
2013-03-04 10:22:48 +01:00
Thibault Delavallée 46a5b63cad [IMP] email_template: better management of attachments. In mass mail, we want attachments to be duplicated due to the ownership concept of attachments in OpenERP.
bzr revid: tde@openerp.com-20130301144827-762362bgng5m4nye
2013-03-01 15:48:27 +01:00
Thibault Delavallée df6a3997c2 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130301111146-1s5ckk09wdt88vb4
2013-03-01 12:11:46 +01:00
Thibault Delavallée aa865c8b61 [FIX] Still fixing attachments through templates.
bzr revid: tde@openerp.com-20130228145513-6g30ujr3cm0j8b3u
2013-02-28 15:55:13 +01:00
Thibault Delavallée b0eb876160 [FIX] mail: first try to fix attachment duplication.
bzr revid: tde@openerp.com-20130228132625-8yjggruhrvbvep21
2013-02-28 14:26:25 +01:00
Thibault Delavallée b23987b75f [FIX] mail: compose wizard: fixed subtype.
bzr revid: tde@openerp.com-20130226164448-hpqb4bl05pzwex97
2013-02-26 17:44:48 +01:00
Thibault Delavallée d2e1ff39cc [IMP] Chatter: full wizard composer does not display recipients in 'log' mode.
bzr revid: tde@openerp.com-20130226125038-bgpmfrmt3v44i870
2013-02-26 13:50:38 +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
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