Commit Graph

474 Commits

Author SHA1 Message Date
Thibault Delavallée c553167ff8 [FIX] mail_message: do not overwrite 'False' message_id when creating a new mail message
bzr revid: tde@openerp.com-20131128133132-8oevlk1wyoqytebo
2013-11-28 14:31:32 +01:00
Thibault Delavallée 4f2e951cde [IMP] mail: mail_thread: routing: check for exact message_id.
WIP: will be improved, notably about what to do for partial match.

bzr revid: tde@openerp.com-20131128103921-q1a36otv9ptazehd
2013-11-28 11:39:21 +01:00
Christophe Simonis 6b7ccc16b7 [FIX] mail: mail_message: avoid crash when checking access rules against invalid ids
bzr revid: chs@openerp.com-20131028135050-4hqx129ouy7z5b03
2013-10-28 14:50:50 +01:00
Thibault Delavallée fbc6443692 [CLEAN] mail: cleaned some read -> browse + forgotten statement to remove
bzr revid: tde@openerp.com-20130913122956-6zkk9ucewbt6w407
2013-09-13 14:29:56 +02:00
Thibault Delavallée 38e75127d9 [MERGE] Syn with trunk
bzr revid: tde@openerp.com-20130906081534-n273weq3h1fvfh2b
2013-09-06 10:15:34 +02:00
Thibault Delavallée e6b85985a5 [MERGE] [FIX] mail: Chatter recipients display fixes.
bzr revid: tde@openerp.com-20130904114911-qbz31cu6675rt603
2013-09-04 13:49:11 +02:00
Thibault Delavallée eaf07ae5c4 [FIX] mail_message: fixed reply_to and email_from computation in create: take also False values, only undefined values trigger the default one
bzr revid: tde@openerp.com-20130828140845-uuv8ouoto4q7g96j
2013-08-28 16:08:45 +02:00
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 b35a44f66d [IMP] mail_mail, mail_message: various improvements to try to improve message creation time
Replaced some read by browse
Moved get_reply_to from mail_mail to mail_message
Hint: specifying email_from, reply_to help to enhance computation time

[REF] mail: cleaned some tests, renamed a file, moved mail_group tests into a dedicated file

bzr revid: tde@openerp.com-20130827133058-ko0g0ib0f0jihmdk
2013-08-27 15:30:58 +02:00
Christophe Simonis 5343c48c5f [MERGE] forward port of branch saas-1 up to revid 8760 chs@openerp.com-20130823143114-83tdjhbsdes0kydr
bzr revid: chs@openerp.com-20130823154655-blm2wyfivmg8qi2z
2013-08-23 17:46:55 +02:00
Christophe Simonis 58868227f9 [MERGE] forward port of branch 7.0 up to revid 9382 chs@openerp.com-20130823131214-ipouwtnz8r16mlvv
bzr revid: chs@openerp.com-20130823143114-83tdjhbsdes0kydr
2013-08-23 16:31:14 +02:00
Martin Trigaux b03203fd3a [FIX] mail: check create access only for acess rights, not access rules (too permissive)
bzr revid: mat@openerp.com-20130821153918-pdtf4mhcdycfdf3p
2013-08-21 17:39:18 +02:00
Martin Trigaux a6410e1bcf [IMP] mail: beeing more permissive on the condition to post new message, allow also if have only the create access
bzr revid: mat@openerp.com-20130821143714-9a1isp0ylwko275k
2013-08-21 16:37:14 +02:00
Atul Patel (OpenERP) 1a382f268c [MERGE]: Merged with addons
bzr revid: atp@tinyerp.com-20130812043810-y14dmqwvuxrxkuag
2013-08-12 10:08:10 +05:30
Thibault Delavallée 079ea21883 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130808083451-plvcks1kwjhh2vzi
2013-08-08 10:34:51 +02:00
Atul Patel (OpenERP) 2706328ca4 [IMP] mail: Pass current user partner id into datasets and get it into template. add author also for private mail.
bzr revid: atp@tinyerp.com-20130725071939-9lmuhfgte987nu03
2013-07-25 12:49:39 +05:30
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
Thibault Delavallée 32d0f6bce0 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130717074710-2jz58nqwe7hnyyij
2013-07-17 09:47:10 +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 a1e942c0de [FIX] mail.compose.message: fixed reply_to from template in mass mailing.
bzr revid: tde@openerp.com-20130606142814-jyw76nhaeivotu6k
2013-06-06 16:28:14 +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
Martin Trigaux ccb38117ee [MERGE] Forward porting of saas-1 until rev 8739
bzr revid: mat@openerp.com-20130605090453-e4mg37kms5j1r18n
2013-06-05 11:04:53 +02:00
Thibault Delavallée cdffc4db54 [FIX] project_issue: fixed write of date_action_last: it is possible to post a message without having access to write access rights on an issue, therefore using SUPERUSER_ID (e.g. portal user).
[FIX] mail_message, mail, project, task, issue: it is now possible to have model-specific access rule checking for mail.message related acces right / rules. Task and issue allow to create mail.message when the user has a read access on the related document, not only when having write access.

bzr revid: tde@openerp.com-20130528144447-3ivcom6r9x7q949b
2013-05-28 16:44:47 +02:00
Thibault Delavallée 2d8f1f4327 [FIX] [IMP] mail_message: adding a non-stored author_avatar field, allowing to display avatars in Chatter messages without having to write some hacks to display the avatars and author images. The field is not stored to avoid issues in a stable version.
bzr revid: tde@openerp.com-20130528143706-3973shwhganlohj8
2013-05-28 16:37:06 +02:00
Vidhin Mehta 2f15045af4 [FIX]Fixes on, need fixing issues by MAT.
bzr revid: vme@tinyerp.com-20130523060223-hupizjpulghv8gsy
2013-05-23 11:32:23 +05:30
Vidhin Mehta c745a1d882 [MERGE]Trunk.
bzr revid: vme@tinyerp.com-20130514120110-gi2oehiapff1n3p0
bzr revid: vme@tinyerp.com-20130523051758-70etk8qp90k8e9ou
2013-05-23 10:47:58 +05:30
Thibault Delavallée a394947699 [FIX] mail_message: fixed reference to a key not necessarily existing in a create dict.
bzr revid: tde@openerp.com-20130516140429-vlfc0o56v7ryd69l
2013-05-16 16:04:29 +02:00
Olivier Dony 9c08e12962 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9085
revision-id: odo@openerp.com-20130429105458-r89mnkx8okdxsdld

bzr revid: odo@openerp.com-20130429151410-54y94063gijyk16o
2013-04-29 17:14:10 +02:00
Thibault Delavallée e0ea2dbdcb [IMP] Chatter: first message is truncated after 100 characters, other messages after 300 characters; cleaned code about expan management.
bzr revid: tde@openerp.com-20130425104336-3xvdwgwanrutzinp
2013-04-25 12:43:36 +02:00
Thibault Delavallée 85a807a515 [REF] Chatter: refactored system for read more / read less, now based on html_email_clean instead of the expander library.
bzr revid: tde@openerp.com-20130423153645-k8vcb9hiuapzf7sg
2013-04-23 17:36:45 +02:00
Vidhin Mehta 75d69f5c8d [IMP]remove html tag from body in name_get
bzr revid: vme@tinyerp.com-20130419094938-1bmd3vu30cxsdyqd
2013-04-19 15:19:38 +05:30
Christophe Matthieu 14493f56ce [IMP] ir_ui_menu: trunk to 7.0 dynamic counters
bzr revid: chm@openerp.com-20130417133205-lx4lh53y6ak29cjc
2013-04-17 15:32:05 +02:00
Thibault Delavallée 4da68cbc22 [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-11 14:44:46 +02:00
Thibault Delavallée fe2ea997a2 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130411103645-rmr3sa8p9ropx2gc
2013-04-11 12:36:45 +02:00
Raphael Collet 894eeef8e0 [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073708-gaxl2332umtedmg6
2013-04-11 09:37:08 +02:00
Quentin (OpenERP) 3bb51ac696 [MERGE] forward port of bugfixes made in 7.0, up to revision 8969.
bzr revid: qdp-launchpad@openerp.com-20130404095257-oek77sijuxjyi0aj
2013-04-04 11:52:57 +02:00
Thibault Delavallée 35b51a2efd [IMP] Chatter: improved footer of chatter messages: better differentiation of logged a note / send a message / system notification, with or without recipients.
bzr revid: tde@openerp.com-20130403145151-nvpeqdpp937079iu
2013-04-03 16:51:51 +02:00
Raphael Collet 96ad608854 [IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-29 15:37:20 +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 Delavallee 99063b421f [REV] mail_thread: message_process: reverted reply_to mechanism, now based on the reply_to-model contained in message_id.
bzr revid: tde@openerp.com-20130312133029-67g69s3ttscwhtoc
2013-03-12 14:30:29 +01:00
Thibault Delavallée 4665d10f05 [IMP] mail, email_template: better consistence of mail.compose.message mdoel ans 0 or res_id res_id for attachments on composer; generate_email_for_composer should avoid returning keys for void values.
bzr revid: tde@openerp.com-20130306134612-yazwi6cgwvw8suyw
2013-03-06 14:46:12 +01:00
Thibault Delavallée 6c3aa520c7 [IMP] mail_followers: improved _notify, to better manage notifications. An optional (to provide compatibility) parameter has been added, that allows to notify partners of a given messages. It checks whether a notification already exists, setting it back as unread, or create a notification pushed by email.
bzr revid: tde@openerp.com-20130226105755-gvkn1ocpwkcndzpl
2013-02-26 11:57:55 +01:00
Thibault Delavallée 0aaca4daa9 [IMP] mail: improved mass mailing. Correctly take into account email_to, email_cc, partner_to even if no template. Mass mailing is a no-subtype post with additional recipients manually notified. Added option (in technical features) to send to followers, or to directly create a mail_mail. Added some default values in mail_message. Added explicit management of email_from and reply_to. Having a reply_to bypasses the 'model-res_id' in message_id behavior allowing to construct threads. Added explicit recipient_ids field on mail_mail that replaces the recipient_ids parameter in mail_mail.send(). Updated tests accordingly.
bzr revid: tde@openerp.com-20130225164857-i635atksj7riq9nd
2013-02-25 17:48:57 +01:00
Thibault Delavallée ecde0aa380 [IMP] Chatter: now displays the 'To' that is the notified people of a given message.
bzr revid: tde@openerp.com-20130214085506-5akyw06ho9vq1xd9
2013-02-14 09:55:06 +01:00
Christophe Matthieu de3dbb971d [FIX] mail: add name in the dictionnary of attachments_tree and check url in js
bzr revid: chm@openerp.com-20130208115238-g4ys0jrcqwamrl3p
2013-02-08 12:52:38 +01:00
Thibault Delavallée 26d161e0d1 [IMP] Notification emails: subject is not truncated anymore.
bzr revid: tde@openerp.com-20130115113920-eem74uh5918lrofm
2013-01-15 12:39:20 +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
Thibault Delavallée 9fa765194f [CLEAN] Cleaned the fix.
bzr revid: tde@openerp.com-20130327112049-jmwcpwc50fsa6bf7
2013-03-27 12:20:49 +01:00
Thibault Delavallée 35b0b7f4b1 [FIX] mail_message: todo are now unread
bzr revid: tde@openerp.com-20130326165940-isag9vxn22vinlgy
2013-03-26 17:59:40 +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 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 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
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
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
Olivier Dony 2a7301ec4c [FIX] mail.message: all recipients explicitly mentioned should receive a notification, including the author
bzr revid: odo@openerp.com-20121220115421-7owruanw15t77xom
2012-12-20 12:54:21 +01:00
Christophe Matthieu 70c710cb82 [IMP] mail: catch exeption if the message body is not converted by html_email_clean. return an error message for rendering and raise the exeption
bzr revid: chm@openerp.com-20121219140748-ur02plu65i6ab9rw
2012-12-19 15:07:48 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Thibault Delavallée 5f008a69a6 [IMP] mail: small code cleanup, added some comments.
bzr revid: tde@openerp.com-20121214104810-kpmnwii14ghdaksd
2012-12-14 11:48:10 +01:00
Thibault Delavallée 90062eb86a [MERGE] Sync with trunk. portal_security.xml file is back, holding a custom res_partner rule.
bzr revid: tde@openerp.com-20121214085639-8xrn4l413x1901n0
2012-12-14 09:56:39 +01:00
Olivier Dony dad04babd3 [FIX] mail.message: be tolerant to messages linked to missing models
(Requested by the migration team)

bzr revid: odo@openerp.com-20121213161739-hszjd5yay2svtd3c
2012-12-13 17:17:39 +01:00
Quentin (OpenERP) 85c90838a8 [REF] mail: splitted the search() function in smaller part in order to ease the inheritance (because some code needs to be overriden for virtual ids, for example)
bzr revid: qdp-launchpad@openerp.com-20121212174323-3kw9vrzacfm3wvm7
2012-12-12 18:43:23 +01:00
Thibault Delavallée f1ee7f1ad9 [IMP] mail_message: added the right to reply to a message wes received even if we cannot see the related document.
bzr revid: tde@openerp.com-20121212160634-umbiq2erwijm2d20
2012-12-12 17:06:34 +01:00
Thibault Delavallée 179f525dc7 [IMP] Portal: portal user has a read access on res_partner, but limited to its own partner.
bzr revid: tde@openerp.com-20121212133612-vvxs2a73tcak3k4s
2012-12-12 14:36:12 +01:00
Thibault Delavallée b541e7ce64 [MERGE] Sync with trunk. Cleaned a bit things lastly added in trunk/mail/tests.
bzr revid: tde@openerp.com-20121211161458-d7wv4lnkvs9s7srj
2012-12-11 17:14:58 +01:00
Christophe Matthieu c70f05cc77 [MERGE] catch and display error when there are an error in an attachment upload. Add mail/download_attachment controllers
bzr revid: chm@openerp.com-20121211152219-2hlw1npfq2jfzx88
2012-12-11 16:22:19 +01:00
Thibault Delavallée 45e1682327 [FIX] [CLEAN] mail: fixed some access rules issues; removed now unused files.
bzr revid: tde@openerp.com-20121211143301-b52ji02vynvgo3m9
2012-12-11 15:33:01 +01:00
Thibault Delavallée 3005251333 [IMP] mail: add test for messages notification and for parented messages notification - CHM revision back to repair the merge.
bzr revid: tde@openerp.com-20121211092405-gir4r95oph2rwv11
2012-12-11 10:24:05 +01:00
Thibault Delavallée bf40c23e00 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121211092156-hg62weec6a3yifsf
2012-12-11 10:21:56 +01:00
Christophe Matthieu ce54a91dee [IMP]mail: read to browse
bzr revid: chm@openerp.com-20121210133540-p5kurxjjflfyzru1
2012-12-10 14:35:40 +01:00
Christophe Matthieu b9eb2afac5 [IMP]mail: remove import
bzr revid: chm@openerp.com-20121210132552-3o8jop7p6tnhq73s
2012-12-10 14:25:52 +01:00
Christophe Matthieu 7b2bf84cfe [IMP] mail: download attachment with the controler /web/binary/download_attachment
bzr revid: chm@openerp.com-20121210112830-gt1qs028p3cgp9dp
2012-12-10 12:28:30 +01:00
Christophe Matthieu 74d514a213 [IMP]mail: add a download_attachment_ids field. the controler can access ton the content of attachemnt with mail security
bzr revid: chm@openerp.com-20121207131118-l88qnfn06aem7ey1
2012-12-07 14:11:18 +01:00
Christophe Matthieu 97505900e6 [FIX]mail: fix access right
bzr revid: chm@openerp.com-20121207104456-y148tuko1b0y7az8
2012-12-07 11:44:56 +01:00
Christophe Matthieu 1737ac04f2 [MERGE] from trunk
bzr revid: chm@openerp.com-20121207082734-9u0jb9zqbmz49f43
2012-12-07 09:27:34 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Thibault Delavallée d8235eec3c [CLEAN] _auto_join -> auto_join.
bzr revid: tde@openerp.com-20121205153609-tncmotw8jnoa53e7
2012-12-05 16:36:09 +01:00
Thibault Delavallée 6a3a890ce6 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121204142922-lk53pozmyhw788rj
2012-12-04 15:29:22 +01:00
Christophe Matthieu 7769228419 [IMP] mail: _notify, change read into browse
bzr revid: chm@openerp.com-20121203131206-ks7tjpf7voei00at
2012-12-03 14:12:06 +01:00
Christophe Matthieu 9d57b96273 [IMP] mail: add comment
bzr revid: chm@openerp.com-20121130145039-4wgxxp1wev9zkj97
2012-11-30 15:50:39 +01:00
Christophe Matthieu 1edd341f1f [FIX] mail: An error appear when a user receive a message without his parent message. Debug: add a notification with read = true to the parented message if there are no notification
bzr revid: chm@openerp.com-20121130144851-3p0a81p3bd51m5ct
2012-11-30 15:48:51 +01:00
Christophe Matthieu 8d41ea91d8 [FIX] mail: Get attachment of a message with a SUPPERUSER_ID when the user can access to the message
bzr revid: chm@openerp.com-20121130134356-vbukzwgk2mj9dq51
2012-11-30 14:43:56 +01:00
Christophe Matthieu 61065b6d04 [IMP] mail: change access for create message for the attachments
bzr revid: chm@openerp.com-20121130110902-1qzmgvinhc0q0i3j
2012-11-30 12:09:02 +01:00
Thibault Delavallée 91cb411e80 [FIX] mail: default_starred key is recognized when creating a mail_message, handled in mail_messgae.create() to avoid issues with notifications if using an invert function on starred function field.
bzr revid: tde@openerp.com-20121130104038-3nivz6kvdyi22f3l
2012-11-30 11:40:38 +01:00
Quentin (OpenERP) e786a1675b [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121130091824-e3xhak3k9z2anihv
2012-11-30 10:18:24 +01:00
Thibault Delavallée 9f84bbddfb [IMP] mail: message_unread searchable field now returns a domain. This domain is quite complex, because it bypasses limitations of the _auto_join feature used on message_ids. It should be: message_ids.read = False. However, it takes into account the one2many model, as well as to_read being a function field also searchable. Ths parsing is not capable to handle this kind of thing correctly now without using an ugly hack. Updated _search_to_read and _search_starred.
bzr revid: tde@openerp.com-20121129144253-i9e7m2kqjteq8ajr
2012-11-29 15:42:53 +01:00
Thibault Delavallée a123d95dca [IMP] mail_message: star feature is now on mail.notification. A starred message has a notification with starred=True. favorite_user_ids many2many field disappear. _search_to_read and _search_starred replaced by returning a domain on the notifications. Using auto_join, this should speedup chatter a lot. Updated tests accordingly (should be updated a bit more than that, though). Updated JS. Updated mailboxes domains, as to_read and starred already contain a reference to the pid.
bzr revid: tde@openerp.com-20121129113025-rizon3eaf14vrla2
2012-11-29 12:30:25 +01:00
Thibault Delavallée a293a948a6 [IMP] mail: when starring a message, create an unread notification if it does not exist; otherwise, set the notification as unread.
bzr revid: tde@openerp.com-20121128151939-v24cfx8k2aul8veg
2012-11-28 16:19:39 +01:00
Thibault Delavallée 2fcaf2252c [IMP] mail_message model: now uses _auto_join.
bzr revid: tde@openerp.com-20121127181138-1mdebb6ehal2r973
2012-11-27 19:11:38 +01:00
Josse Colpaert bf172d2959 [MERGE] merge from trunk
bzr revid: jco@openerp.com-20121126140054-0p35u0qd38k51w84
2012-11-26 15:00:54 +01:00
Josse Colpaert 7dbe9bc58a [IMP] clean-up fp
bzr revid: jco@openerp.com-20121121144932-fmsldkrtngb097r8
2012-11-21 15:49:32 +01:00
Olivier Dony fadd311945 [FIX] mail: remove ugly hack for context filtering that wreaks havoc in contexts
This hacks makes a mess and works with a whitelist that
completely breaks the generic context passing mechanism.
Replaced by specific guard through default_get overrides
for the models that are sensitive to default value
leaks via context.
E.g. mail.message is sensitive to leaked default_type
context keys that are meant for other models, such
as those passed by the Invoices menus.

bzr revid: odo@openerp.com-20121121101917-izeu4c493un86udf
2012-11-21 11:19:17 +01:00
Thibault Delavallée 3c8f8915b2 [FIX] mail: expandables: expandable was placed at a wrong place in the message list.
bzr revid: tde@openerp.com-20121114155810-q284caaual2sk8ka
2012-11-14 16:58:10 +01:00
Thibault Delavallée fbccb823f8 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121112161523-yfp1dczcnmi85t8e
bzr revid: tde@openerp.com-20121114083900-qw40e8ii1rfl7gt1
2012-11-14 09:39:00 +01:00
Thibault Delavallée 0e2a8ad21f [IMP] mail_message: added some indexes and explanations in the model fields.
bzr revid: tde@openerp.com-20121112140408-c3v4bb4gm5i2yl5e
2012-11-12 15:04:08 +01:00
Christophe Matthieu c22eec5f7d [FIX] mail: scroll, avatar, delete attachments, print
bzr revid: chm@openerp.com-20121109101628-4e8cnjr1lcmt0tdv
2012-11-09 11:16:28 +01:00
Thibault Delavallée acb1156ee5 [FIX] mail: fixed bug adding signature of partners without users, therefore without signature field; fixed message_id of mail.message without model,res_id, that were not granted a message_id, therefore generated when sending a mail.mail, therefore breaking parent relationship based on message_id. Also fixed content_subtype of message coming from message_process.
bzr revid: tde@openerp.com-20121108164138-8jp2340t6s2sa9hd
2012-11-08 17:41:38 +01:00