Commit Graph

134 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
Nicolas Lempereur eb463689c0 [FIX] mail: get template outgoing server
The outgoing server of a mail template is not used when sending a mail.

This fix propagates the mail server the same way it's done for auto_delete.

opw-633005
2015-04-17 16:59:37 +02:00
Nicolas Lempereur c21480a3d1 [FIX] mail: auto_delete option on email notification
When writing a message via the chatter with a template being in auto_delete
False, the notifications emails are always in auto_delete True.

This fix propagate the auto_delete option of a mail.template to these
notifications emails.

opw-630010
2015-03-30 13:42:23 +02:00
Samus CTO 7126ae8143 [FIX] mail: prevent sending mail during registry loading 2015-01-28 16:17:43 +01:00
Thibault Delavallée fd4f6efe1b [IMP] mail: various cleaning and fixes in the notification email links (wording, missing document name management) 2014-08-29 13:22:51 +02:00
Christophe Simonis a614fed0a4 [FIX] mail: tell orm to rename column "read" to "is_read" 2014-08-19 15:35:25 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Denis Ledoux 7c647ec876 [MERGE] forward port of branch saas-4 up to 0a1e4a0 2014-08-08 17:27:29 +02:00
Denis Ledoux 0a1e4a05b2 [MERGE] forward port of branch saas-3 up to 81a902a 2014-08-08 17:06:39 +02:00
Martin Trigaux 2a74666bb0 [FIX] mail: avoid duplication followers when merging partners 2014-08-07 18:17:39 +02:00
Thibault Delavallée 2e5412fc1d [FIX] mail, BaseModel, portal_sale: fixes and improvements in the URL
management to access documents in notification emails, as well as for the
'view quotation' link in portal_sale module.

models: added a get_access_action method: basically, returns the action to
access a document. It uses the get_formview_action by default (form view
of the document). However for some documents we want to directly go to the
website, leading to an act_url action for some documents. This method allows
this behavior.

portal_sale: get_signup_url now uses the mail.action_mail_redirect method
instead of directly redirecting towards a portal menu. This allows to fall
back on a standard behavior.

portal_sale: get_formview_action updated, to match actions tailored for
portal users.

website_quote: get_access_action of sale order updated. If the sale order
has a template defined, the returned action is an act_url (website view
of the quotation), not the form action anymore.

mail: fixed signature + company signature in notification emails. Even without
user signature, the company signature + access link should be correct.

portal: signup url in notification emali was not using the mail redirection
as action. It is now the case.
2014-08-07 16:47:59 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Denis Ledoux a5f7891b68 [MERGE] forward port of branch saas-4 up to 5739aebfb1 2014-07-23 13:18:30 +02:00
Olivier Dony 6ac1deccf6 [FIX] mail, website_mail: specific mailing-list footer + better unsubscribe option
- remove the default footer for mail.group messages,
  replace with specific footer with archive and unsubscribe
  link
- remove the automatic addition of user signature in
  mail.group messages, as many of them will be posted
  via the mail gateway and already contain a user signature.
- make it easier to unsubscribe even when not logged in,
  as followers who have not signed up will have no
  way to login short of signing up.
- remove tests looking for user signature in mail.group posts
2014-07-16 23:21:30 +02:00
xmo-odoo fbdfc0065c Merge pull request #947 from chrispetsos/odoo-807
Changed follower's e-mail to reference Odoo instead of OpenERP, fixes #807
2014-07-07 10:37:23 +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
Chris Petsos f9b330b259 odoo-807: Changed follower's e-mail to reference Odoo instead of OpenERP 2014-07-06 14:10:57 +03: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
Amit Vora b592f9e13a [MERGE][IMP] Enable HTML in emails signature
Closes #801
2014-06-27 11:31: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
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Thibault Delavallée 4baccd7bee [IMP] mail: notifications: when having more than 500 followers to mail
use the email queue instead of directly sending notification emails.
2014-05-15 14:13:33 +02:00
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
Amit Vora e6f8666b52 [MERGE] [IMP] mail: Inbox usability improvements :
- notficiation_email_send field, renamed into notify_email, has now 2 values: always or never, in
order to ease the choice and simplify options.
- inbox: removed 'compose a new messages or write to my followers', because those 2 options are
already available. The first one is accessible using the top-right email icon, the second one
is accessible with the 'write to my followers' text box alread present in the inbox.

bzr revid: tde@openerp.com-20140417094133-8ip7vuy6b30xlc32
2014-04-17 11:41:33 +02:00
Amit Vora cfbd8ae9f8 [IMP] change field name notificatio_email_send to notify_email and none selection key instead of never
bzr revid: avo@tinyerp.com-20140409101604-1l8ltrcpjps8pazi
2014-04-09 15:46:04 +05:30
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
Mahendra Barad caa3510ea4 [IMP] Mail Improvements
bzr revid: kjo@tinyerp.com-20131218131805-e97d5tmq2tr6pvh2
2013-12-18 18:48:05 +05:30
Thibault Delavallée 4779df339e [REF] mail_followers: cleaned notify methods, lessening the number of queries.
bzr revid: tde@openerp.com-20130827153840-fo9s2lc35fvld3fb
2013-08-27 17:38:40 +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
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
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 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 8aa85c2523 [FORWARD] Forward port of addons until revision 8711
bzr revid: tde@openerp.com-20130521133807-5n97jep45f3lf6uq
bzr revid: tde@openerp.com-20130522083012-4yry4ht2943sjatn
2013-05-22 10:30:12 +02:00
Thibault Delavallée a05b0bebbe [FORWARD] Forward port of 7.0 branch until revision 9143.
bzr revid: tde@openerp.com-20130521122359-b5vii7gv8arluz06
2013-05-21 14:23:59 +02:00
Thibault Delavallée 852479d5be [FIX] mail_followers: avoid partners_to_notify parameter in _notify only if None, not if void.
bzr revid: tde@openerp.com-20130513142633-bf02usbabnncy6me
2013-05-13 16:26:33 +02:00
Olivier Dony aafd2a7fca [FIX] mail: fix typos + wrong URL links + wrong translation marks in mail signature
bzr revid: odo@openerp.com-20130507175432-kslh1hl7w6ule5fq
2013-05-07 19:54:32 +02:00
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