[IMP] mail, email_template: still continuing work to improve performances of mass...
authorThibault Delavallée <tde@openerp.com>
Mon, 24 Feb 2014 13:20:38 +0000 (14:20 +0100)
committerThibault Delavallée <tde@openerp.com>
Mon, 24 Feb 2014 13:20:38 +0000 (14:20 +0100)
commit4739eb138b4086ba2df76673d4a05f789f0c6512
treecab8312fac71202eaafacfb30a043bfea7ffefea
parent4a284821b4189c45e6acd6a62aeb26b8c21d167d
[IMP] mail, email_template: still continuing work to improve performances of mass mailing.
main differences :
- record_name is not a function field anymore, but a char field + a method in create
if not given (default-like, but dependent of other values). This allows the composer
to give a value for record_name (False for email mass mailing) to avoid browsing
records and having their access rights issues in the way
- author_id, email_from coming from composer instead of called in every mail.message
creation
- moved code dealing with attachments from send_mail to get_mail-values, to that at
the end of this method we know all values of the email

Some tests have been updated / temporarily disabled.

bzr revid: tde@openerp.com-20140224132038-txdi0g30a7fzbnxp
addons/email_template/tests/test_mail.py
addons/mail/mail_message.py
addons/mail/tests/test_mail_features.py
addons/mail/wizard/mail_compose_message.py