Commit Graph

27 Commits

Author SHA1 Message Date
Thibault Delavallée 3180b4def5 [CLEAN] mail: cleaned mail-invite before merging. Updated some methods and var names; updated some comments.
bzr revid: tde@openerp.com-20120913154844-i5tikncn3sxepk34
2012-09-13 17:48:44 +02:00
Thibault Delavallée 30fb693c20 [IMP] Portal: override of mail_mail to add the signin link into footer of send notifications.
bzr revid: tde@openerp.com-20120912155300-8ilg2g24yl7qsjfg
2012-09-12 17:53:00 +02:00
Thibault Delavallée a16bf464f5 [IMP] mail: added a new behavior when sending notifications. Each notification can now be customized (subject, body); each partner to notify will receive a different ir_email. It is still the same mail_mail as a basis, but specific content can be send to partners (for example, portal links). Updated the tests as well.L
bzr revid: tde@openerp.com-20120912133843-lltf7pzder386e2w
2012-09-12 15:38:43 +02:00
Thibault Delavallée 6d03677e4e [CLEAN] mail_mail: cleaned some forgotten spaces; fixed the commend for the notification field.
bzr revid: tde@openerp.com-20120912120144-m440eafqjtccv3sp
2012-09-12 14:01:44 +02:00
Olivier Dony 5f1dce419b [IMP] mail*: implement auto-deletion mechanism for mail.message, mail.mail and the attachment
This is based on the auto_delete flag on mail.mail
and the assumption that mail.mail records created
without a parent message will be deleted as a whole,
including the parent message and its attachments.
This is contrasted with mail.mail records created
for notifications regarding a mail.message, and therefore
created with an existing `mail_message_id` parent.
For this last case the parent must not be deleted
along with the child mail.mail, as it exists on its own.

bzr revid: odo@openerp.com-20120905151950-7jv6hi0x5fx5iytp
2012-09-05 17:19:50 +02:00
Thibault Delavallée 21f17ba8a5 [CLEAN] mail_mail: misc clean of comments and commented lines; also renamed message as mail in send, to have a more accurate variable name.
bzr revid: tde@openerp.com-20120831093139-9o8ui5h912rx9i13
2012-08-31 11:31:39 +02:00
Olivier Dony 9aabe91bbf [FIX] email_template: wip - trying to make templates work again
bzr revid: odo@openerp.com-20120830174452-59q43k1x13at4i37
2012-08-30 19:44:52 +02:00
Thibault Delavallée bec83eef6f [REF] mail_mail: body_html is back, holding the body of emails to send.
Body of send emails is mail_mail.body_html, not body anymore.
Signature adding is back to mail_followers.notify().
Subject adding is still done just before sending.
Updated mail_mail view. mail.compose.message: body_text inside <pre>. 
[TESTS] mail: added tests for message_post, updated tests for mail.message.compose to test the composer only.

bzr revid: tde@openerp.com-20120830085116-o5h13yqodt0vof0k
2012-08-30 10:51:16 +02:00
Thibault Delavallée 9b6379462b [REF] mail_mail: cool and clean refactoring of the models.
Removed body_html and content_subtype fields. We now entirely
rely on the body field, that holds sanitized HTML.
Added a user_signature field from email_template. mail_mail.send()
is now responsible of adding the signature on emails.
mail_notification.notify() sets the user_signature flag on
emails send for notifciations.
mail_mail.send() is responsible of adding a default subject
on emails send if there is no subject on the mail.message,
and res_id and model are set.
purchase_requisition: removed an override of mail.message
schedule_with_attach.

bzr revid: tde@openerp.com-20120829150002-v8t581oesnw0rhvl
2012-08-29 17:00:02 +02:00
Olivier Dony b19d73525d [IMP] mail: implement parent message resolution when parsing incoming message + cleanup lint
bzr revid: odo@openerp.com-20120828173901-8y9y16crvii8d2qg
2012-08-28 19:39:01 +02:00
Thibault Delavallée 6e3ea98e48 [IMP] mail_mail: re-instaured body_alternative, using html2plaintext of tools. Removed some dead imports.
bzr revid: tde@openerp.com-20120824160936-n3fehtgf4f2k0dkn
2012-08-24 18:09:36 +02:00
Thibault Delavallée 4969c586b4 [FIX] mail_mail: temp fix, commented headers propagation; mail_followers: send emails accordign to email preferences was not correct.
bzr revid: tde@openerp.com-20120824085342-aa9s1ojl2j3v85fk
2012-08-24 10:53:42 +02:00
Olivier Dony 406e58399f [FIX] mail: unify message_post calls, fix typos, various lint cleanup
bzr revid: odo@openerp.com-20120822113439-aoy7v4njs6o34tu5
2012-08-22 13:34:39 +02:00
Thibault Delavallée 1bc63a91ad [FIX] mail_mail: added import of tools, to be able to use email_split.
bzr revid: tde@openerp.com-20120822074545-7sx8xnsmf610gnxz
2012-08-22 09:45:45 +02:00
Olivier Dony 0113e9281a [FIX] mail: more refactoring errors: missing _logger
bzr revid: odo@openerp.com-20120822010947-8avs21hi7ib30ix2
2012-08-22 03:09:47 +02:00
Olivier Dony 95b13bdaa4 [FIX] *mail: s/mail_message/mail_mail/ for cases where a full mail_mail is necessary
bzr revid: odo@openerp.com-20120821212419-yu2criox6sayf2cv
2012-08-21 23:24:19 +02:00
Fabien Pinckaers 9d61a88b40 [IMP] compose wizards
bzr revid: fp@tinyerp.com-20120820165110-h6dub7l7zaufpj3n
2012-08-20 18:51:10 +02:00
Fabien Pinckaers 9fd90c604e test
bzr revid: fp@tinyerp.com-20120820140901-pqvj3fj8zruit3f4
2012-08-20 16:09:01 +02:00
Fabien Pinckaers 06f60b3517 [FIX] body_text --> body, not ure it's good enough
bzr revid: fp@tinyerp.com-20120817120606-t97l9x2dguuv7kmp
2012-08-17 14:06:06 +02:00
Fabien Pinckaers 960e4ba541 [IMP] email cleaning
bzr revid: fp@tinyerp.com-20120816164311-o7r05mewrvjoldsg
2012-08-16 18:43:11 +02:00
Fabien Pinckaers 282f2535bc [IMP] mail cleaning
bzr revid: fp@tinyerp.com-20120816154823-84cnif2cw99vn0qu
2012-08-16 17:48:23 +02:00
Fabien Pinckaers 73827c5525 [IMP] mail cleaning
bzr revid: fp@tinyerp.com-20120816101848-0l3wyu98zjmtkfks
2012-08-16 12:18:48 +02:00
Fabien Pinckaers c7c1cb1037 [IMP] renaming message_state to message_unread
bzr revid: fp@tinyerp.com-20120816092616-jnoj0d18rw1ifqth
2012-08-16 11:26:16 +02:00
Fabien Pinckaers a2b7f82a81 [IMP] no auto_follow, we will use auto-compose instead on some actions
bzr revid: fp@tinyerp.com-20120816090243-nzu6ounygswiceqi
2012-08-16 11:02:43 +02:00
Fabien Pinckaers e9fb0161f5 [IMP] wip
bzr revid: fp@openerp.com-20120815193406-7dw3zwbz0sg1cjwa
2012-08-15 21:34:06 +02:00
Fabien Pinckaers 677024e099 [IMP] refactoring email
bzr revid: fp@openerp.com-20120815184403-dtpep7ypwbc6hm5w
2012-08-15 20:44:03 +02:00
Fabien Pinckaers af93ab5290 [IMP] factorisation of objects
bzr revid: fp@openerp.com-20120815170822-udsmc9geqmm6jae8
2012-08-15 19:08:22 +02:00