Commit Graph

2624 Commits

Author SHA1 Message Date
Olivier Dony 49597f0e66 [MERGE] *: improved english wording, suggestions courtesy of OpenERP Community
bzr revid: odo@openerp.com-20121221164808-kdjrtcbgma4dr3on
2012-12-21 17:48:08 +01:00
Thibault Delavallée f6894591a3 [MERGE] mail: varioux fixes and improvements.
Mail:
- Chatter widget now checks email address in a given thread that are not linked to any partner; it proposes to create a partner that will be added as follower to the document for each found email address
- fixed reload of a posted message
- invite wizard now uses the many2many_tags_email widget, to avoid sending invitations to partners not having an email address defined
Misc :
- note: fixed padding of note leading to ugly display of notes

bzr revid: tde@openerp.com-20121221163459-wv0jiss4wplla1yl
2012-12-21 17:34:59 +01:00
Thibault Delavallée dcd9f1d35e [IMP] mail: fixed a forgottent context.
bzr revid: tde@openerp.com-20121221161159-267ezrwo3bux3879
2012-12-21 17:11:59 +01:00
Thibault Delavallée be6dd64e1e [FIX] Fixed argument of wrapper.
bzr revid: tde@openerp.com-20121221160523-q11rzna9jz7zspyu
2012-12-21 17:05:23 +01:00
Thibault Delavallée f9763f5d05 [IMP] mail.js, xml: misc cleaning. I hate JS.
bzr revid: tde@openerp.com-20121221153007-5o220hdqg9sbt3f3
2012-12-21 16:30:07 +01:00
Thibault Delavallée d28418f6e4 [FIX] message_post_user_api: fixed subscribe.
bzr revid: tde@openerp.com-20121221152956-h400n3w8hgxleumm
2012-12-21 16:29:56 +01:00
Thibault Delavallée 1ab87ddd67 [CLEAN] Misc code cleaning.
bzr revid: tde@openerp.com-20121221145247-qqd1a1morv99ooow
2012-12-21 15:52:47 +01:00
Thibault Delavallée f922d9ea1f [IMP] mail: refactored a bit the code in message_post_user_api, as well as overrides in res_partner and res_users, to use kwargs. Updated mail.js to use kwargs. Updated mail.xml and css to tweak the display.
bzr revid: tde@openerp.com-20121221144014-otg03akq4c9grjmz
2012-12-21 15:40:14 +01:00
Thibault Delavallée 63d993e45d [CLEAN] invite wizard: removed unused method onchange_partner_ids. Cleaned a bit code in invite_view.
bzr revid: tde@openerp.com-20121221133928-lytc76vbs0bdnhuz
2012-12-21 14:39:28 +01:00
Thibault Delavallée 839d61f97f [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121221133349-u2lpl29430abrkyw
2012-12-21 14:33:49 +01:00
Thibault Delavallée da4dc767c4 [MERGE] Various fixes and improvements in mail.
IMP:
- mail.compose.message: added a context key 'mail_post_autofollow' that automatically subscribe the message recipients to the document followers, if any
- sale, purchase, invoice: recipients of 'Send by email' action are now automatically added as followers, using the above key
- mail: the Chatter widget on documents now sets the displayed messages as read
- mail: for incoming emails going through message_process that have an author, the author is added in the related document followers, if any
FIX:
- mail: attachments added in Chatter/Mailboxes were not added to the notifications emails send to followers/recipients
- portal: fixed various mail_mail created without specifying the type field, that could crash if a conflicting 'default_type' key was present in context (i.e. in opportunities)

bzr revid: tde@openerp.com-20121221131108-jx9jkeukjamnd3yh
2012-12-21 14:11:08 +01:00
Christophe Matthieu 7602c4f6d7 [MERGE] fix for mail: catch exeption if the message body is not converted by html_email_clean. return an error message for rendering and raise the exception
bzr revid: chm@openerp.com-20121221125847-rjxyey9veasgr23a
2012-12-21 13:58:47 +01:00
Christophe Matthieu d650d3c6ba [MERGE] from trunk
bzr revid: chm@openerp.com-20121221124830-8d6hz0b2h3o9c4pd
2012-12-21 13:48:30 +01:00
Christophe Matthieu 8972f7b334 [IMP] mail: check if the new email recipient already exist or not, and fix _api
bzr revid: chm@openerp.com-20121221121144-o8pbya2rc7v471y0
2012-12-21 13:11:44 +01:00
Thibault Delavallée 19efa31b51 [FIX] mail: attachments were not send by email.
bzr revid: tde@openerp.com-20121221113927-4q90f0in645gorj9
2012-12-21 12:39:27 +01:00
Christophe Matthieu 2b8374f5ea [IMP] mail: css for recipient on compose message
bzr revid: chm@openerp.com-20121221112307-0hj05yw1nn3l3ux9
2012-12-21 12:23:07 +01:00
Thibault Delavallée e6a63fea3a [FIX] mail: tests: fixed mock of gateway.
bzr revid: tde@openerp.com-20121221111755-63q6w4pkvkx0lvcf
2012-12-21 12:17:55 +01:00
Christophe Matthieu f080e91168 [IMP] mail: add message 'Add this contact's email on recipient and follower'
bzr revid: chm@openerp.com-20121221111400-ngc62hepbgzqepy8
2012-12-21 12:14:00 +01:00
Christophe Matthieu 9fe900791d [IMP] follower: must have access write to invite follower
bzr revid: chm@openerp.com-20121221110003-h7h9cie4vcejif7z
2012-12-21 12:00:03 +01:00
Christophe Matthieu d36ef41a46 [IMP] mail follower: don't display invite button if the user don't have write access. Use many2many_tags_email widget on composer
bzr revid: chm@openerp.com-20121221102649-xyecgj5tqd3li3hw
2012-12-21 11:26:49 +01:00
Christophe Matthieu 9df82da7c0 [FIX] mail: remove console and empty return in js
bzr revid: chm@openerp.com-20121221101416-ljb3o4h3hxflz8sb
2012-12-21 11:14:16 +01:00
Christophe Matthieu e5c67bc1b9 [IMP] mail: open wizard(s) to create partner(s) before send message from email
bzr revid: chm@openerp.com-20121221101232-od1owyxhkhmorx5t
2012-12-21 11:12:32 +01:00
Thibault Delavallée f49f43958d [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121221100609-2x59amtxj4sjedcu
2012-12-21 11:06:09 +01:00
Thibault Delavallée c88008856e [IMP] message_process: author of incoming emails that are partner are automatically subscribed to the created or updated document.
bzr revid: tde@openerp.com-20121221100352-eraewn17t2ls831q
2012-12-21 11:03:52 +01:00
Thibault Delavallée b37450ba49 [IMP] sale, purchase, invoice: automatically subscibe recipints of Send by email as document followers.
bzr revid: tde@openerp.com-20121221095902-k2xk928po48cogdm
2012-12-21 10:59:02 +01:00
Christophe Matthieu bfa8c20431 [IMP] mail: display author in recipients
bzr revid: chm@openerp.com-20121221085458-nrofy50r8ruuszag
2012-12-21 09:54:58 +01:00
Christophe Matthieu e9d8ae79ca [IMP] mail: add a qweb tag for display author
bzr revid: chm@openerp.com-20121221081916-r1gkknu7estwg2kw
2012-12-21 09:19:16 +01:00
Christophe Matthieu a057391199 [IMP] mail: message_post_user_api don't return the id partner if already exist
bzr revid: chm@openerp.com-20121221081521-dase1mbdutm1whri
2012-12-21 09:15:21 +01:00
Launchpad Translations on behalf of openerp 231ecd2032 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121221043915-9f5zsgjkksp56zwn
bzr revid: launchpad_translations_on_behalf_of_openerp-20121221044239-5bv82e8q9e8s6bxw
bzr revid: launchpad_translations_on_behalf_of_openerp-20121221050452-f6jqbwzk9lovjkxm
2012-12-21 05:04:52 +00:00
Thibault Delavallée 0f62de1b2f [FIX] Fixed commit about adding create_missing parameter: wrong var name.
bzr revid: tde@openerp.com-20121220211221-fksj045ds3slrjvx
2012-12-20 22:12:21 +01:00
Thibault Delavallée e97dc0ffd4 [IMP] mail.js: improved display of destination partners of a message.
bzr revid: tde@openerp.com-20121220211103-5zjb6xclllgcyr8f
2012-12-20 22:11:03 +01:00
Thibault Delavallée de64985e8c [IMP] mail_message: set_message_read and set_message_starred now have an argument to control the automatic notification creation. Chatter now calls set_message_read on received messages (on documents), to set them as read. This is therefore done independently of the message_read, to avoid writing in a read-based method. Added a mutex on the call on set_message_read, because of a recurrent concurrent accesses issue.
bzr revid: tde@openerp.com-20121220205328-gws2j32dsitofu89
2012-12-20 21:53:28 +01:00
Olivier Dony d0934da481 [FIX] mail.message: all recipients explicitly mentioned should receive a notification, including the author
The above revision(s) will be removed.

bzr revid: odo@openerp.com-20121220182004-460168pd9rofbpgw
2012-12-20 19:20:04 +01:00
Olivier Dony 26e93a59b3 [IMP] mail.compose.message: show emails in m2m_tags, to help confirm partner selection
bzr revid: odo@openerp.com-20121220172012-f0j24mzljgqs9l0r
2012-12-20 18:20:12 +01:00
Christophe Matthieu 66623391ff [IMP] mail: send an empty context for the name_create when we convert email_from to partner
bzr revid: chm@openerp.com-20121220163514-185r5vrb0omcgp5g
2012-12-20 17:35:14 +01:00
Christophe Matthieu 507eff8255 [IMP] mail: after convert email_from into partner, open a dialog box to complete partner informations
bzr revid: chm@openerp.com-20121220162754-v5wfxrp39nf0bkla
2012-12-20 17:27:54 +01:00
Christophe Matthieu d3e8a3ddea [IMP] mail: display author at recipients on compose message
bzr revid: chm@openerp.com-20121220155558-9pihqxo35koaitp6
2012-12-20 16:55:58 +01:00
Christophe Matthieu 4b930b2e4a [IMP] mail: author is not a link if is not a partner
bzr revid: chm@openerp.com-20121220154729-eqrruc3uz5xjj4s2
2012-12-20 16:47:29 +01:00
Christophe Matthieu 863c7f421d [IMP] mail: option to don't display email_from partners on the top composer
bzr revid: chm@openerp.com-20121220154604-f6zvrbrqxjawropq
2012-12-20 16:46:04 +01:00
Christophe Matthieu 4fe3f5862a [FIX] mail: get set (python) of partners for email_from
bzr revid: chm@openerp.com-20121220153658-iptoh0u0baa7u3rn
2012-12-20 16:36:58 +01:00
Christophe Matthieu 7a1ba3a3d5 [IMP] mail follower: add button to show more followers
bzr revid: chm@openerp.com-20121220152906-tr3i2jy7uvqyw9vc
2012-12-20 16:29:06 +01:00
Christophe Matthieu 2efed7e8f8 [IMP] mail follower: remove the unfollow partners button if the user can't edit the view
bzr revid: chm@openerp.com-20121220150112-ysmpkqv0bbx5shrk
2012-12-20 16:01:12 +01:00
Thibault Delavallée b127484733 [IMP] set messages read when viewing chatter: search only unread notifications.
bzr revid: tde@openerp.com-20121220143527-y98r2hftskgb9e3g
2012-12-20 15:35:27 +01:00
Thibault Delavallée a8540c5b7e [REF] [FIX] mail: refactored auto-set read when viewing chatter widget. Added some tests. Also fixed a bug about message order with anybody else than admin.
bzr revid: tde@openerp.com-20121220142852-6sjk03791x829ys3
2012-12-20 15:28:52 +01:00
Christophe Matthieu 79308644c9 [IMP] mail follower: allow to remove followers if the user have access to write on the document
bzr revid: chm@openerp.com-20121220140946-hqqkz62xyn0oq9g8
2012-12-20 15:09:46 +01:00
Thibault Delavallée 8dbf13a1e4 [MERGE] Merged branch holding the automatic set of notifications as read when viewing chatter.
bzr revid: tde@openerp.com-20121220133839-je1jt9ff4a0mfpxh
2012-12-20 14:38:39 +01:00
Christophe Matthieu 5b6c12b0d0 [IMP] mail follower: hide follower subtype if <= 1. unfollow if the user uncheck all subtype
bzr revid: chm@openerp.com-20121220132434-bte0y5mc21b5r0m5
2012-12-20 14:24:34 +01:00
Christophe Matthieu 40b1c95e1a [IMP]mail: display checkbox for allow to add email (from email_from value) for creating partner and send email to this new partners.
bzr revid: chm@openerp.com-20121220123122-qsqn8w97t1tre3cq
2012-12-20 13:31:22 +01:00
Thibault Delavallée c0414016b0 [REV] mail_followers.js: reverted to trunk version, because was not working.
bzr revid: tde@openerp.com-20121220121842-gcij0rq791ik41ja
2012-12-20 13:18:42 +01:00
Thibault Delavallée 6fd2f14e3b [CLEAN] Small cleanup of code.
bzr revid: tde@openerp.com-20121220121752-31a5ulkwg1k7v961
2012-12-20 13:17:52 +01:00