Commit Graph

136 Commits

Author SHA1 Message Date
Jitendra Prajapati 1f86156991 [MERGE] [IMP] mail, report_webkit: view improvements + better name_get for mail and aliases.
bzr revid: tde@openerp.com-20140509102355-wor8j7cy3egna3qx
2014-05-09 12:23:55 +02:00
Christophe Simonis b8089a1521 [MERGE] forward port of branch saas-4 up to revid 9410 chs@openerp.com-20140507164207-kmme4tsrd4w1m7l1
bzr revid: chs@openerp.com-20140507170112-bjeltv2b0coy60am
2014-05-07 19:01:12 +02:00
Christophe Simonis 9a271eef16 [FIX] mail: correct code indentation introduced during previous forward-port
bzr revid: chs@openerp.com-20140507164207-kmme4tsrd4w1m7l1
2014-05-07 18:42:07 +02:00
Christophe Simonis 1091b24a0c [MERGE] forward port of branch saas-3 up to revid 9450 chs@openerp.com-20140507153348-g2qw61dkxvps13br
bzr revid: chs@openerp.com-20140507160023-8wwqlbf3bv7yqe67
2014-05-07 18:00:23 +02:00
Jitendra Prajapati (OpenERP) e8d8762c77 [IMP]override name_search method and set _rec_name on subject in mail_mail
bzr revid: jpr@tinyerp.com-20140506104621-7gryl1gpv1hrmfvr
2014-05-06 16:16:21 +05:30
Denis Ledoux 4f1dbde8d5 [FIX] mail: attachments present for first recipient, but not for the others
attachments should be an array and not a generator [x for x in y] instead of (x for x in y)

bzr revid: dle@openerp.com-20140505123852-kjc6z0npiot9c54l
2014-05-05 14:38:52 +02:00
Jitendra Prajapati (OpenERP) 59a9d91558 [MERGE]sync main branch
bzr revid: jpr@tinyerp.com-20140505095247-gv9je300z9j98sk0
2014-05-05 15:22:47 +05:30
Olivier Dony 61d2122987 [FIX] mail.mail: avoid prefetching attachment data in memory while processing mail queue, could fail due to memory limit
Specifically when there are many emails in the queue, prefetching
all their attachments at once when processing the first one
could fail, so not even one mail would be sent.

Added explicit logging when an email triggers a MemoryError,
as well as logging when each email is successfully sent.

bzr revid: odo@openerp.com-20140502144431-r3brgagl4gel4wmt
2014-05-02 16:44:31 +02:00
Antony Lesuisse 7e25b9ae55 [MERGE] saas-4 report_webkit missing dependency on report
bzr revid: al@openerp.com-20140501152604-4cobh5ui47dt4pem
bzr revid: al@openerp.com-20140501155633-gefnc3zqcsr2rhaz
bzr revid: al@openerp.com-20140501161156-4wbsvhh8gz4r22h3
2014-05-01 18:11:56 +02:00
Olivier Dony c3e812f34a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 10025 rev-id odo@openerp.com-20140430102552-qkwv20b20nve64th
bzr revid: odo@openerp.com-20140430110048-6971xplq8k073tto
2014-04-30 13:00:48 +02:00
Olivier Dony c43fdfe32b [FIX] mail: avoid catching (transient) MemoryErrors when sending outgoing mail
This would permanently mark the mail as failed while
there is a good chance it will be sent properly next
time it is retried (provided the memory situation
improves or the server/worker has restarted).

bzr revid: odo@openerp.com-20140430102552-qkwv20b20nve64th
2014-04-30 12:25:52 +02:00
Thibault Delavallée 88f7865043 [FIX] mail: unlink only sent emails, not failed emails.
bzr revid: tde@openerp.com-20140425122726-k5upt8tq5xp4m228
2014-04-25 14:27:26 +02:00
Jitendra Prajapati (OpenERP) 9c051c5bd9 [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140424050125-c58ek4dlw5805k29
2014-04-24 10:31:25 +05:30
Thibault Delavallée d3ee65eed6 [MERGE] [IMP] mail: slightly improved doc links in notification emails (shorter, clearer)
bzr revid: tde@openerp.com-20140423125319-kegutder49zzqmri
2014-04-23 14:53:19 +02:00
Jitendra Prajapati (OpenERP) 76d284ab8e [IMP]set python string is translated
bzr revid: jpr@tinyerp.com-20140410083655-6m993y17nckk7mfz
2014-04-10 14:06:55 +05:30
Thibault Delavallée 8178669795 [FIX] mail, mass_mailing
- mail: now trigger postprocess_sent_message in every case, being sent or not, as the state
is propagated in the method; udpated all addons accordingly;
- email_template: fixed URL to edit it in website + form view;
- mass_mailing: barchart now send jsonified value;
- mass_mailing: tweaking the form view with all options

bzr revid: tde@openerp.com-20140408124053-o9tb14k6v47s5mjd
2014-04-08 14:40:53 +02:00
Thibault Delavallée 2e02338a2b [IMP] mail_mail: small code and docstrings cleaning + moved some code into
its own method (find email_to) + set email_to as 'Followers of X' only when having
a notification-style mail_mail.

bzr revid: tde@openerp.com-20140321171455-gz0q3eo0fbato50k
2014-03-21 18:14:55 +01:00
Thibault Delavallée adca4573c6 [DOC] mail: updated docstring of a method taht was not up to date
bzr revid: tde@openerp.com-20140321123029-kbfy73ecxidshnnb
2014-03-21 13:30:29 +01:00
Jitendra Prajapati (OpenERP) f81c4ec36e [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140319051202-hvo8wvd8aunce5bc
2014-03-19 10:42:02 +05:30
Thibault Delavallée a581d864a2 [IMP] mass_mailing: improved test send / send to all
- now workign on various models, taking the correct recipient (email, partner_id for partner or lead)
- improved test send: use email_to, now a many2many on contact model to ease the use of templates
- added action to create a mailing list from leads
- moved a res.partner dedicated action to its own file
- added an actoin to create a mailing list from contacts
- fixed mail_mail post_process: use mail_sent variable as mail.state is not available

bzr revid: tde@openerp.com-20140318164117-f2aou25u633j8m57
2014-03-18 17:41:17 +01:00
Thibault Delavallée 95284e1ecf [CLEAN] mail_mail: lean cleaning
bzr revid: tde@openerp.com-20140314174809-t66z5pjxwu1izh6a
2014-03-14 18:48:09 +01:00
Thibault Delavallée 0d3d0e9563 [IMP] mail: improved link in notification, now of form
Sent from <company> using <openerp:pub>, about <model document_name>, access in <customer portal:partner only>

bzr revid: tde@openerp.com-20140305173610-yw71rophyt3iyfi4
2014-03-05 18:36:10 +01:00
Thibault Delavallée 11e0e64769 [FIX] mail: notification url: only web, not login
bzr revid: tde@openerp.com-20140226170002-ndr090idip3cyx3n
2014-02-26 18:00:02 +01:00
Thibault Delavallée bb795e929d [FIX] mail: fixed sign-in URL in notification emails, use the new web/login controller introduced in saas-3.
bzr revid: tde@openerp.com-20140225095054-kswinebsgsj5fex1
2014-02-25 10:50:54 +01:00
Jitendra Prajapati (OpenERP) 4c6083580a [MERGE]with lp:openobject-addons
bzr revid: prajapatijitendra7969@gmail.com-20140120051258-gpmbuy6ztm8wo51f
2014-01-20 10:42:58 +05:30
Thibault Delavallée b92ad39005 [FIX] email_template: support of email_recipients in send_mail.
email_recipients is a char fields holding a comma separated list of partner_ids
that are the email recipients. This field is correctly handled in the composer
but was not taken into account in the send_mail method email_template.
However due to model limitations, this field can only be taken into account
when sending the email directly using force_send. When the email is
queued, no field is available to hold the value of email_recipients.
This is already fixed in trunk/v8 as a field has been added to handle
this value.

[FIX] mail: when sending email to some recipients_ids, filter to have only
the existing partner_ids. Trusting email template to generate valid
partner_ids is a bit risky.

[TESTS] email_template: added tests for send_mail

bzr revid: tde@openerp.com-20131220144652-h18yam60vpedbh7x
2013-12-20 15:46:52 +01:00
jke-openerp 306dd6e397 [IMP] Add span with class for footer received in mail
[FIX] convert partner_to  from template_mail (string with comma) to recipent_ids (list of partner_id) in model mail_mail

bzr revid: jke@openerp.com-20131219133144-zbt100e8030wd927
2013-12-19 14:31:44 +01:00
jke-openerp cd4f71cf36 [REF] rb r2g
bzr revid: jke@openerp.com-20131124130241-s1hjdl08y5dcsnxs
2013-11-24 14:02:41 +01:00
jke-openerp 5f9ee3b2d2 [IMP] Bck not running
bzr revid: jke@openerp.com-20131123113627-csxj0qx8s030dhi7
2013-11-23 12:36:27 +01:00
Pooja Zankhariya (OpenERP) a676916002 [IMP]Improved value in breadcrumb
bzr revid: pza@tinyerp.com-20131101073821-dugeqgue1a0o4ry5
2013-11-01 12:38:21 +05:00
Pooja Zankhariya (OpenERP) 66850dbe56 [MISC]Revert rev 8963
bzr revid: pza@tinyerp.com-20131101062806-bcbmvwnvm4lig5n9
2013-11-01 11:28:06 +05:00
Pooja Zankhariya (OpenERP) 34224c45e1 [MISC]Revert rev 8962
bzr revid: pza@tinyerp.com-20131101061945-is98vb8lane02hb6
2013-11-01 11:19:45 +05:00
Pooja Zankhariya (OpenERP) a59de2a106 [IMP]Added warning when user clicks on send button and server is not configured
bzr revid: pza@tinyerp.com-20131030131055-ljewgj0zz86hxzli
2013-10-30 18:10:55 +05:00
Pooja Zankhariya (OpenERP) c4dd49d317 [IMP]Improved value in breadcrumb
bzr revid: pza@tinyerp.com-20131030130558-akqntn5k4rjhx771
2013-10-30 18:05:58 +05:00
Thibault Delavallée 62e88a16e4 [FIX] mail: mail_mail: fixed url embedded in notification emails.
When having emails not linked to a notification (mail.notification = False)
the link is generated without any clue about the source record.
However we can try to use model and res_id defined on the mail_mail record
to correctly format a link.

Added support of model and res_id in message_redirect_action. This method
now can redirect based on a message_id, or based on model / res_id.

bzr revid: tde@openerp.com-20131018144924-j4f22hen3lsua7cb
2013-10-18 16:49:24 +02:00
Thibault Delavallée ed62d1dac7 [REF] mass_mailing: first refactor
Mail statistics are now stored onto a separated object (mail.mail.statistics), allowing to
handle emails separately from statistics (among other removing mail.mail entries while keeping
statistics).

Everything linnked to opened/replied/bounce is not managed by mass_mailing, removed added code
in mail module.

bzr revid: tde@openerp.com-20130913115408-322cyjipdg680as6
2013-09-13 13:54:08 +02:00
Thibault Delavallée ce8c987089 [IMP] mail, email_template, mass_mailing: improvev mass mailing management in mail.compose.message + form view cleanings + some fixes in mail_mail about set_opened/replied/bounced, now checking that ids effectively exist
bzr revid: tde@openerp.com-20130910151901-nhuwvtrkbwekyh7x
2013-09-10 17:19:01 +02:00
Thibault Delavallée 903ca548c7 [IMP] mass_mailing: added kanban views for mass_mailing, implemented segment for campaigns. Moved sparkline and gauge widgets to web.
Segment: template, date, mails.
Campaign: grouped statistics.

bzr revid: tde@openerp.com-20130903145936-nwy250w1suxmtbl3
2013-09-03 16:59:36 +02:00
Thibault Delavallée b35a44f66d [IMP] mail_mail, mail_message: various improvements to try to improve message creation time
Replaced some read by browse
Moved get_reply_to from mail_mail to mail_message
Hint: specifying email_from, reply_to help to enhance computation time

[REF] mail: cleaned some tests, renamed a file, moved mail_group tests into a dedicated file

bzr revid: tde@openerp.com-20130827133058-ko0g0ib0f0jihmdk
2013-08-27 15:30:58 +02:00
Thibault Delavallée 982915b7d0 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130807145147-ltn86n2a87q8y88g
2013-08-07 16:51:47 +02:00
Thibault Delavallée 2eece10cd4 [FIX] mail_mail: computation of reply_to after create to avoid
interfering with automatic message_id creation of mail_message
[FIX] mail_thread: fixed issues with private messages through mailgateway
(wrong route checking, variable erasing)
[TEST] mail: added test for the second bug

bzr revid: tde@openerp.com-20130807142418-3h5qxdt3ekosj9x6
2013-08-07 16:24:18 +02:00
Thibault Delavallée fd100054cc [FIX] mail_mail: fixed reply_to computation (before create was leading to a wrong message_id to the embedded mail_message); mail_thread; fixed private discussion not going through the route checking; improved replying through mailgateway now incrementing the replied field of mail_mail.
bzr revid: tde@openerp.com-20130807130118-yggvmontssofxt0q
2013-08-07 15:01:18 +02:00
Thibault Delavallée 38a534dee0 [IMP] mail: first implementation of tracking and bounce management.
Added 2 fields on mail_mail to count read/bounce.
Added bounce alias bounce-mail_id-model-res_id.
Added message_receive_bounce method that try to incremetn message_bounce field.

bzr revid: tde@openerp.com-20130806151143-7dw6xlj8n7mh0nqe
2013-08-06 17:11:43 +02:00
Thibault Delavallée a3a0d3dbbf [FIX] mail: res was not created if there are no email in email_list when sending emails
bzr revid: tde@openerp.com-20130726101008-whwcl1ssh2fsxhbw
2013-07-26 12:10:08 +02:00
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
Martin Trigaux d2d72d8416 [MERGE] forward port of saas-1 up to revision 8749 (mat@openerp.com-20130702135856-kmg7d8anw17nkbd8)
bzr revid: mat@openerp.com-20130702144646-y1wqs5mz4rzoh50g
2013-07-02 16:46:46 +02:00
Denis Ledoux 6b45fe6ae9 [FIX]mail: _postprocess_sent_message send all mail, not only type = email
bzr revid: dle@openerp.com-20130614132418-hfhf61vfmq28zmv0
2013-06-14 15:24:18 +02:00
Christophe Simonis 201a383c9c [FIX] mail: reply_to is set to email_from as a last resort
bzr revid: chs@openerp.com-20130614103005-9x5r0b22b25jll1g
2013-06-14 12:30:05 +02:00
Christophe Simonis 1ae74e8907 [FIX] mail: default value for email_reply_to variable (merge messup)
bzr revid: chs@openerp.com-20130614094439-iqji8aimvaf4x5t6
2013-06-14 11:44:39 +02:00
Christophe Simonis aa133b4d29 [MERGE] forward port of branch saas-1 up to revid 8745 chs@openerp.com-20130613181503-82234mo34wxb0oap
bzr revid: chs@openerp.com-20130614091924-z5ta02kwhmwcrgox
2013-06-14 11:19:24 +02:00