Commit Graph

457 Commits

Author SHA1 Message Date
Thibault Delavallée b95b32d644 [MERGE] Merged branch holding subtype work by APA.
bzr revid: tde@openerp.com-20121218131142-2jb6wac6y9q6dc7v
2012-12-18 14:11:42 +01:00
Thibault Delavallée bfea9dad64 [REF] mail: refactored tracked feature. It is now based on a dict defined at model level, giving which subtypes are triggere when modifying some given fields. Cleaned code.
bzr revid: tde@openerp.com-20121218122558-mnrtlwouwai65gq6
2012-12-18 13:25:58 +01:00
Thibault Delavallée 2dbe4a696e [MERGE] Sync wirth trunk.
bzr revid: tde@openerp.com-20121218093241-y0id5g1r1k6yok42
2012-12-18 10:32:41 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Foram Katharotiya (OpenERP) 7608fe70de [IMP] add generic method _subscribe_followers_subtype in mail_thread & remove method in all module
bzr revid: fka@tinyerp.com-20121217073817-8kmp0j3kn39gyrwg
2012-12-17 13:08:17 +05:30
Sanjay Gohel (Open ERP) de45fd4fc1 [MERGE]with trunk
bzr revid: sgo@tinyerp.com-20121217050659-q5w6zwefizgjv4fd
2012-12-17 10:36:59 +05:30
Thibault Delavallée f64d4a5ada [CLEAN] mail: misc cleaning of read -> browse, SUPERUSER_ID -> uid, because no need to SUPERUSER in this case.
bzr revid: tde@openerp.com-20121212160804-n182n9bzo8vscuvt
2012-12-12 17:08:04 +01:00
Thibault Delavallée 347d0e5b46 [IMP] portal removed access rights of portal user on res_partner and derived tables. Updated several accesses to bypass the security issues. Updated portal tests to have a more complete test scenario.
bzr revid: tde@openerp.com-20121212125518-k0s07niojr8a1xtu
2012-12-12 13:55:18 +01:00
Thibault Delavallée 0a8c55f6f4 [FIX] mail_thread: when deleting a document, delete all followers, using superuser_id to bypass various security rules.
bzr revid: tde@openerp.com-20121212104141-dogt5gi2v70vyr7d
2012-12-12 11:41:41 +01:00
Thibault Delavallée 3a1e0059a2 [MERGE] Merged branch holding fix of access rights when deleting a document, and the removal of inherits between mail.group and ir.ui.menu.
bzr revid: tde@openerp.com-20121211145536-a02i45isg30l9940
2012-12-11 15:55:36 +01:00
Sanjay Gohel (Open ERP) 26fd182e32 [MERGE]merge with trunk
bzr revid: sgo@tinyerp.com-20121211063215-44s68mudkztyy56b
2012-12-11 12:02:15 +05:30
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
Christophe Matthieu 852b219cec [FIX] mail: when a user try to delete a document, no access error. debug: delete followers after the document.
bzr revid: chm@openerp.com-20121205150827-24q03x65tplsgg4t
2012-12-05 16:08:27 +01:00
Thibault Delavallée 85d1f4fcb1 [IMP] mail_thread: message_unread: fixed domain of fnct_search, unread message have to_read flag at True, not false.
bzr revid: tde@openerp.com-20121205140539-5g6ebfx4j425xglr
2012-12-05 15:05:39 +01:00
Thibault Delavallée 3e2651998f [MERGE] Merged addons branch trunk-join-speedup-tde, holding mail_message modifications to have favorite_user_ids -> starred, functional searchable field. This field checks if there is a related notification, for the current user, about the starred flag.
bzr revid: tde@openerp.com-20121205095554-80pxwnuaaq2lz638
2012-12-05 10:55:54 +01:00
Thibault Delavallée 3bb1475f6e [FIX] mail_thread: fixed search domain on message_unread that was buggy.
bzr revid: tde@openerp.com-20121205095020-932qhljgd5ll9nzb
2012-12-05 10:50:20 +01:00
Sanjay Gohel (Open ERP) 0b6059cdb2 [IMP]minor changes
bzr revid: sgo@tinyerp.com-20121205060254-82gnc2y2w37d0pi5
2012-12-05 11:32:54 +05:30
Sanjay Gohel (Open ERP) 73343c5656 [IMP]improve code
bzr revid: sgo@tinyerp.com-20121205050513-c0y5rla3aqb320iv
2012-12-05 10:35:13 +05:30
Thibault Delavallée 83d1e7cdf2 [IMP] mail_message: notification_ids as _auto_join; mail_thread: mail_message as _auto_join. Updated search domain of function fields accordingly.
bzr revid: tde@openerp.com-20121204145645-vea4i1p93zmwztqx
2012-12-04 15:56:45 +01:00
Sanjay Gohel (Open ERP) c850d5eac4 [IMP]improve code remove convert for display method
bzr revid: sgo@tinyerp.com-20121204122930-oebqygeibqjw9rt6
2012-12-04 17:59:30 +05:30
Sanjay Gohel (Open ERP) c91da1fb35 [MERGE]merge with latest trunk
bzr revid: sgo@tinyerp.com-20121203132425-umzbdj5gm6m29b6c
2012-12-03 18:54:25 +05:30
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 bb759994ac [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121129113658-x23z7w5e54mr4j9v
2012-11-29 12:36:58 +01:00
Sanjay Gohel (Open ERP) 766cad2f02 [IMP]improve code for subtype implementation and if remove record then string shows as removed
bzr revid: sgo@tinyerp.com-20121128114823-whnokm2a1j9m3ddk
2012-11-28 17:18:23 +05:30
Thibault Delavallée e0fa7da24f [REM] mail_thread: removed field message_comment_ids, not really necessary. In message_summary, we display the true number of messages, not only comment number. This is more consistent with what you will see in Chatter, aka all messages.
bzr revid: tde@openerp.com-20121127143520-cv4os3dosrqo01wb
2012-11-27 15:35:20 +01:00
Thibault Delavallée 9dc08f3d70 [IMP] mail_thread: improved search function of message_unread, now directly implemented in SQL to speedup the result.
bzr revid: tde@openerp.com-20121127143222-nj9i2o5byor4m7oq
2012-11-27 15:32:22 +01:00
Sanjay Gohel (Open ERP) 9adb2e1eb1 [IMP]improve code
bzr revid: sgo@tinyerp.com-20121126125733-av712p9bixk20ew9
2012-11-26 18:27:33 +05:30
Sanjay Gohel (Open ERP) ccd78ad745 [IMP] remove message post for stage change and implement subtype on changed stage
bzr revid: sgo@tinyerp.com-20121126055541-nh8wjs35wviiybks
2012-11-26 11:25:41 +05:30
Sanjay Gohel (Open ERP) 6e1e4f084b [IMP]improve code for tracking field and add code for tracked it
bzr revid: sgo@tinyerp.com-20121122051759-lks3ykule5w5om6x
2012-11-22 10:47:59 +05:30
vta vta@openerp.com 946a5e700d [FIX] Remove remaining message_followers widget.
bzr revid: vta@openerp.com-20121121135721-rqjd3x4d2bdu4a7i
2012-11-21 14:57:21 +01:00
Christophe Simonis a4eb1112c2 [IMP] mail: models inherting from mail.thread can now flag their fields as 'tracked'. Changed tracked fields are logged automatically in the thread. (work in progess)
bzr revid: chs@openerp.com-20121121095831-uto0g3e6f2713828
2012-11-21 10:58:31 +01:00
vta vta@openerp.com 9a15327d52 [MERGE] Latest trunk.
bzr revid: vta@openerp.com-20121121091133-svpmfiurclr7n69e
2012-11-21 10:11:33 +01:00
Thibault Delavallée b9c07b1019 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121120090512-82lyg9jotfvlim0n
2012-11-20 10:05:12 +01:00
Thibault Delavallée 3bc9d36b77 [FIX] message_route: when replying to a message, use its model and res_id, never lost.
bzr revid: tde@openerp.com-20121119141740-tjlp1uy4mq4lrg48
2012-11-19 15:17:40 +01:00
Thibault Delavallée 8007db3bc1 [FIX] mail_thread: when posting a messure using mail_thread as model (typically, a private message without model, res_id), do not try to set it on the attachments; this make the custom access rules check of ir.attachment crash.
bzr revid: tde@openerp.com-20121116112800-8ur8yr8alcrlgg1z
2012-11-16 12:28:00 +01:00
Thibault Delavallée f24d291e51 [FIX] mail_thread: fixed calculation of message_unread: read field may be False or NULL.
bzr revid: tde@openerp.com-20121116095003-8bbfyyvlhzqehf6h
2012-11-16 10:50:03 +01:00
vta vta@openerp.com e92a31e2bb [IMP] Now portal users can subscribe to public content.
bzr revid: vta@openerp.com-20121116075744-tclpsjxi1ut6wvh8
2012-11-16 08:57:44 +01:00
Thibault Delavallée 53e1a01ee1 [FIX] mail_thread: fixed function name from tools, text2html is plaintext2html.
bzr revid: tde@openerp.com-20121114163252-s0eqvjvdy953yyq2
2012-11-14 17:32:52 +01:00
Thibault Delavallée 026a042e7b [FIX] mail_thread: fixed message_subtype wrongly taken into account when posting through Chatter or fetchmail.
bzr revid: tde@openerp.com-20121114143506-qcmhrcngfxm4tbvu
2012-11-14 15:35:06 +01:00
Thibault Delavallée 17c2939ddc [IMP] mail_thread: message_process: plaintext incoming messages are preserved in pre tags.
bzr revid: tde@openerp.com-20121114111129-8nkneu1h6ij2lk99
2012-11-14 12:11:29 +01:00
Thibault Delavallée 48e3bdb332 [IMP] mail_thread: incoming messages without model that are reply to a private message shoudl not have any res_id. Assert it.
bzr revid: tde@openerp.com-20121114105323-5an5v6m7bdaaomy1
2012-11-14 11:53:23 +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 7b4f7d0d19 [FIX] [IMP] [OPTI] mail_thread: optimized _get_message_data to lessen the display time of heavy list views.
bzr revid: tde@openerp.com-20121112131051-seci8tw9156iyjxz
2012-11-12 14:10:51 +01:00
Thibault Delavallée b1a5db6a91 [FIX] message_process: fixed wrong domain for finding parent message based on in-reply-to.
bzr revid: tde@openerp.com-20121109100900-ri2126fe0ejb8c8w
2012-11-09 11:09:00 +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
Thibault Delavallée d5d7dced4d [FIX] mail: message_process now handles replies to messages without model, thread_id. Based on in-reply-to, it finds the parent message. mail_thread.message_post_user_api is called to create a new mail.message, bypassing message_new / message_update in this case. Some improvements added to partner_ids when using the chatter or message processing.
bzr revid: tde@openerp.com-20121108152502-aow7vhu4erx7fb9l
2012-11-08 16:25:02 +01:00
Thibault Delavallée 389b502b63 [FIX] mail: posting from mailboxes now correctly handles recipients of replies message. Body is now converted into html.
bzr revid: tde@openerp.com-20121107171521-whwcjefpjvt91ye6
2012-11-07 18:15:21 +01:00
Thibault Delavallée da6ee587e3 [CLEAN] Misc cleaning in comments and domain for mailboxes.
bzr revid: tde@openerp.com-20121107153910-uo22t1ahd9qoo1ub
2012-11-07 16:39:10 +01:00
Thibault Delavallée f9829bbb93 [FIX] mail_thread: in message_parse, correctly set partner_ids of the message dict. By the way small things in amil module.
bzr revid: tde@openerp.com-20121107105148-6o1dvu7f4ms24rbx
2012-11-07 11:51:48 +01:00