Commit Graph

78 Commits

Author SHA1 Message Date
Sanjay Gohel (Open ERP) 18d606a794 [MERGE]merge mail-cleaning-fp and change in mail message
bzr revid: sgo@tinyerp.com-20120831050230-opnug0owd3o1ucaf
2012-08-31 10:32:30 +05:30
Sanjay Gohel (Open ERP) fd5983469f [MERGE]merge wit mail-cleaning-fp
bzr revid: sgo@tinyerp.com-20120830122522-szvrqatugoeih1em
2012-08-30 17:55:22 +05:30
Olivier Dony 06e13555d5 [FIX] mail: simplify test and cleanup some code + fix plaintext signature append
bzr revid: odo@openerp.com-20120830122112-y2lbgcazy0opvbs8
2012-08-30 14:21:12 +02:00
Sanjay Gohel (Open ERP) 91c022497b [MERGE]merge with lp:~openerp-dev/openobject-addons/trunk-mail-cleaning-fp and done changes as needed
bzr revid: sgo@tinyerp.com-20120830112426-15b9jere67yyoa3q
2012-08-30 16:54:26 +05:30
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
Olivier Dony d8c65aa88e [IMP] mail.notification: simplify model creation + some lint cleanup
No need for extra constraints/defaults, in OpenERP
boolean values are `true` and `not true` (false/NULL).

This seems to work well with db indexes too.

bzr revid: odo@openerp.com-20120829164614-9kqrownb7q4vzrjc
2012-08-29 18:46:14 +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
Thibault Delavallée 1d131bae84 [RENAME] mail: res.partner: renamed notification_email_pref into notification_email_send, because this pref suffix is very ugly.
bzr revid: tde@openerp.com-20120829114424-fznd0ujsqnk1hve7
2012-08-29 13:44:24 +02:00
Thibault Delavallée fe03a7f1ed [FIX] mail_message: fixed _get_unread, because of an unitialized dict; mail_followers: fixed a wrong parameters order.
bzr revid: tde@openerp.com-20120828150244-vcpxj2nroc8esjzk
2012-08-28 17:02:44 +02:00
Thibault Delavallée 115e6f9687 [IMP] [TEST] mail.notification: added an SQL constraint on mail.notification, to have default false value on read column even when writing into the table using write on the partner_ids column of mail.message (therefore by-passing the default_get of the orm for mail_notification model). Added tests for needaction, based on mail.message, that by the way helped trigerred this bug. Hooray.
bzr revid: tde@openerp.com-20120828113128-70gjunh6bx3pho30
2012-08-28 13:31:28 +02:00
Thibault Delavallée 80a73e7237 [FIX] sale: fixed demo data. Added a protection against void body in final body creation.
bzr revid: tde@openerp.com-20120827153257-astw7738j6qdqc8l
2012-08-27 17:32:57 +02:00
Thibault Delavallée d583b98a97 [IMP] mail_followers: moved email creation for emails send for notification into a dedicated method; updated subject and body creation (added default subject, added signature on body).
bzr revid: tde@openerp.com-20120824161038-vhylgsify9f9xder
2012-08-24 18:10:38 +02:00
Thibault Delavallée 70b90a2343 [FIX] mail_followers: when sending the notification email, it could be interesting to have something in the body. Well, receiving void emails ensure that your spam is not a time-consuming one, but I am not sure this was the intended purpose.
bzr revid: tde@openerp.com-20120824100451-82crb3j7i0ki2h9h
2012-08-24 12:04:51 +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
Thibault Delavallée 95a66586d9 [REF] [TEST] mail: cleaned the way followers are added to a message partner_ids (done in notify in mail.message) and the way emails are send (done in notify in mail.followers). Composition wizard override mail_message.notify to avoid having partners and sending emails. Also added tests that helped finding some bugs, that will be cleaned tomorrow.
bzr revid: tde@openerp.com-20120823180648-8xpu8qyf7qr6azc2
2012-08-23 20:06:48 +02:00
Fabien Pinckaers 462fc03987 fix
bzr revid: fp@tinyerp.com-20120823155747-0ysezcil7hcy1sv0
2012-08-23 17:57:47 +02:00
Thibault Delavallée 4de99bff8d [IMP] mail.js: Hide in wall now sets the notification as read. Added server code to handle the client-side link. Also fixed composer, when replying to an email. Began to propagate the use of context for some values instead of everything in options, in js code.
bzr revid: tde@openerp.com-20120822172346-zih62h6wgrev22cd
2012-08-22 19:23:46 +02:00
Thibault Delavallée be208572cf [FIX] mail.js: fixed some function names / mail_followers: fixed an email_to.
bzr revid: tde@openerp.com-20120821160036-jruwclg54d67a21y
2012-08-21 18:00:36 +02:00
Fabien Pinckaers c264a4f05a merge
bzr revid: fp@tinyerp.com-20120820165615-iekhshkbxnksa73j
2012-08-20 18:56:15 +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
Thibault Delavallée 014c133518 [FIX] mail_followers: added forgotten notification obj.
bzr revid: tde@openerp.com-20120820140404-zglfrn799kw48n0d
2012-08-20 16:04:04 +02:00
Fabien Pinckaers 6ac583c0f7 [IMP] mail cleaning
bzr revid: fp@tinyerp.com-20120817111936-2d33nlqlbvkjb374
2012-08-17 13:19:36 +02:00
Fabien Pinckaers 960e4ba541 [IMP] email cleaning
bzr revid: fp@tinyerp.com-20120816164311-o7r05mewrvjoldsg
2012-08-16 18:43:11 +02:00
Foram Katharotiya (OpenERP) 4f696f004e [MERGE/IMP] merge with parent branch & improve message_create method in mail_thread
bzr revid: fka@tinyerp.com-20120816100908-q9mqmz49h6og0m6f
2012-08-16 15:39:08 +05:30
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 e5b76be9b8 [IMP] merge trunk
bzr revid: fp@tinyerp.com-20120816072402-7w1avco6ryt12x10
2012-08-16 09:24:02 +02:00
Thibault Delavallée ff0a280a7e [REF] mail.subscription: renamed to mail.followers. Also renamed files accordingly. Views and menu entries have been updated. Also removed an ununsed read field on mail.notification.
bzr revid: tde@openerp.com-20120813191006-jf7vygdyb93k7nxf
2012-08-13 21:10:06 +02:00