Commit Graph

474 Commits

Author SHA1 Message Date
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
Thibault Delavallée 935964a710 [IMP] mail: mail_message: some string made more understandable.
bzr revid: tde@openerp.com-20121107172237-iqe5ay844eh2zsm5
2012-11-07 18:22:37 +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
Thibault Delavallée c0e139bd4b [IMP] mail: displayed messages now goe through html_email_clean to clean their content; added a css because we now have lots of <p> in chatter messages, and default margin is quite big (to be improved maybe); updated demo data.
bzr revid: tde@openerp.com-20121107085926-9g609zgmkg4kieqc
2012-11-07 09:59:26 +01:00
Christophe Matthieu e9a24477a8 [FIX] mail: display 'Compose a new message' button; Limit messages: 30
bzr revid: chm@openerp.com-20121107082442-t48a3fqheme0r0h4
2012-11-07 09:24:42 +01:00
Christophe Matthieu f4bf65f723 [IMP] mail: update js with filtering id (read & star). No ID return by py for the expandable message
bzr revid: chm@openerp.com-20121105115852-10t2izyauqxamlhh
2012-11-05 12:58:52 +01:00
Thibault Delavallée 13a49a855c [IMP] mail: updated notified_partner_ids field string and help; udpated demo data; updated __init__ to avoid issues with non existing columns in mail_favorite.
bzr revid: tde@openerp.com-20121102142322-prq9vvtec93u9mah
2012-11-02 15:23:22 +01:00
Thibault Delavallée db19771e06 [FIX] mail_message: added a rec_name, because otherwise many2one widget crashes, because the name field does not exist.
bzr revid: tde@openerp.com-20121102104604-gyug2jgdm35xhh67
2012-11-02 11:46:04 +01:00
Thibault Delavallée 455a076050 [FIX] mail: fixed an order issue with expandables.
bzr revid: tde@openerp.com-20121102102248-juqo5b21wmn6ywl8
2012-11-02 11:22:48 +01:00
Christophe Matthieu 6fdac36ca4 [IMP]mail: no sort in js insert_message; add filename for attachment
bzr revid: chm@openerp.com-20121101104404-sei3g5knixuv969j
2012-11-01 11:44:04 +01:00
Thibault Delavallée da31d41d85 [REF] mail: refactored message_read. It nows re-uses browse record instead of a read, to lessen the number of queries. Some optimizations have been added about queries. message_read now also sorts the messages, not the JS anymore.
bzr revid: tde@openerp.com-20121031154026-vx7s1ucag4kgb7nn
2012-10-31 16:40:26 +01:00
Thibault Delavallée eb6735f6bc [REV] Reverted fix about last_id, only python-side.
bzr revid: tde@openerp.com-20121031153500-0kjazjc9a2gq6p94
2012-10-31 16:35:00 +01:00
Christophe Matthieu 1bbc2c0063 [IMP] mail: js, compose, expandable and message extend messageglobal
bzr revid: chm@openerp.com-20121031145610-e8m9l7lsmzzjru9k
2012-10-31 15:56:10 +01:00
Christophe Matthieu fd0b674f5c [IMP] mail: last_id (js/py)
bzr revid: chm@openerp.com-20121031090931-gloqsggi3j276jpj
2012-10-31 10:09:31 +01:00
Thibault Delavallée d97ffd7b19 [CLEAN] Misc cleaning of code: removed debug statements, added some notes.
bzr revid: tde@openerp.com-20121029112117-kup1q99c2nbkgar7
2012-10-29 12:21:17 +01:00
Christophe Matthieu 0d4fdc41f9 [FIX] mail: resolve error to read message after posting
bzr revid: chm@openerp.com-20121029092934-gqfg7gq90xs8w3k1
2012-10-29 10:29:34 +01:00
Christophe Matthieu 46a60cdac7 [MERGE] from trunk-mail-concreting-tde, TODO fix bug
bzr revid: chm@openerp.com-20121029090847-27h3tmyvsv9c8vej
2012-10-29 10:08:47 +01:00
Thibault Delavallée 9014be7ca4 [CLEAN] mail: cleaned code before merging, removed debug and print statements.
bzr revid: tde@openerp.com-20121026123604-l4j4e1ta26hw6fur
2012-10-26 14:36:04 +02:00
Thibault Delavallée daeccb5ab2 [IMP] mail: added a quote context to email notifications. This is a first basic implementation with a dummy template that will have to be improved. Updated tests. TOFIX: some of the tests will have to be cleaned a bit.
bzr revid: tde@openerp.com-20121026113336-s18129kmn2df4lhs
2012-10-26 13:33:36 +02:00
Thibault Delavallée e1bbbad62f [IMP] mail: ancestor_id -> back to parent_id; message_post force the parent to be the oldest ancestor.
bzr revid: tde@openerp.com-20121026080005-ns2vicwdksr515ll
2012-10-26 10:00:05 +02:00
Thibault Delavallée 95ce9afb67 [IMP] mail: mail_message.record_name is now store=True, removing a lot of access right checks and document reads. Also forced the parent_id to be the first ancestor of a thread.
bzr revid: tde@openerp.com-20121025151123-s3qiodtf8xm7huvq
2012-10-25 17:11:23 +02:00
Thibault Delavallée 82398c12c8 [FIX] mail: mail_message from field renamed to email_from, because of reserved word. Various fixes.
bzr revid: tde@openerp.com-20121025135020-83h1cybp6um53uq5
2012-10-25 15:50:20 +02:00
Thibault Delavallée 6966509c6e [IMP] mail_message: partner_ids now holds only specific destination partners. Partners + followers is now stored into notified_partner_ids. Added a from field on mail_message, holding the email address of the sender, in case of an incoming email message that cannot be linked to a partner.
bzr revid: tde@openerp.com-20121025113048-5f1ob8ligqzb52gu
2012-10-25 13:30:48 +02:00
Thibault Delavallée 12a3bacf8c [FIX] message_read: giving ids is now just a way to avoid using the domain; everything else is the same.
bzr revid: tde@openerp.com-20121025075110-3re19dkvyxix8q76
2012-10-25 09:51:10 +02:00
Thibault Delavallée 25084cb88c [CLEAN] mail_message: cleaned a bit methods about access rules.
bzr revid: tde@openerp.com-20121024155329-8rf0610r69ay0c93
2012-10-24 17:53:29 +02:00
Thibault Delavallée b1122deb38 [IMP] mail: added _search override on mail_message, to filter the results of a search according to our custom rules. Added some tests.
bzr revid: tde@openerp.com-20121024141806-8iayf7cz2ndxyz2l
2012-10-24 16:18:06 +02:00
Christophe Matthieu b38521f779 [MERGE] from trunk-mail-concreting-tde
bzr revid: chm@openerp.com-20121023140922-03ocuuc122ywa0a4
2012-10-23 16:09:22 +02:00
Thibault Delavallée b4bcff666a [FIX] mail: message_read: ancestor_id is set in thread mode as the first displayed ancestor; ancestor_id is set to parent_id parameter in flat mode.
bzr revid: tde@openerp.com-20121023132755-dp29bake9eux5vz7
2012-10-23 15:27:55 +02:00
Thibault Delavallée 7bae2a58fe [FIX] mail: message_read: expandable parent_id -> ancestor_id; ancestor is now correctly set for messages, even when the parent is not added to the message_list.
bzr revid: tde@openerp.com-20121023122824-yqhsr65cwygorani
2012-10-23 14:28:24 +02:00
Christophe Matthieu d2805cdc00 [MERGE] from trunk-mail-concreting-tde
bzr revid: chm@openerp.com-20121023115910-5ajpk6xrtk0ztisr
2012-10-23 13:59:10 +02:00
Thibault Delavallée 8c8c0dd753 [IMP] mail: message_read: improved flat / threaded domains (using child_of for thread, or only id for flat); improved ancestor fetching (not using parent_id anymore, because ancestor is the parent message to display the message thread).
bzr revid: tde@openerp.com-20121023114124-co3ij97tz1c25qa8
2012-10-23 13:41:24 +02:00
Thibault Delavallée a013e6e62f [IMP] [WIP] mail: expandables now limited to one level (using a child_of based domain); simplified code. message_read updated to fetch the oldest possible ancestor, not all direct parents. Updated some tests. Still WIP, will be continued tomorrow.
bzr revid: tde@openerp.com-20121022164638-gqe5af1uxvl5h043
2012-10-22 18:46:38 +02:00
Christophe Matthieu 739694db06 [IMP] mail: concat expandable messages
bzr revid: chm@openerp.com-20121022133247-oen01b8ozq2cozhk
2012-10-22 15:32:47 +02:00
Thibault Delavallée c186168b71 [REM] mail_message: removed max_limit arg of expandables.
bzr revid: tde@openerp.com-20121022114502-dgod5p1u4ixmdcla
2012-10-22 13:45:02 +02:00
Thibault Delavallée ebd9ceba11 [FIX] mail_message: fixed default args for message_read, using list assignation in args could lead to weird default parameter args because of the method re-using the same list.
bzr revid: tde@openerp.com-20121022113651-u0yn40e8zltwbf4f
2012-10-22 13:36:51 +02:00
Christophe Matthieu a97b20d1ec [MERGE] from trunk
bzr revid: chm@openerp.com-20121022075824-hnyaunrv8wjd16bz
2012-10-22 09:58:24 +02:00
Thibault Delavallée 1fbee6cb3c [WIP] mail: tests: WIP about comments and tests about message_read. Will be continued later.
bzr revid: tde@openerp.com-20121019140439-u64d06em0z7eax0m
2012-10-19 16:04:39 +02:00
Christophe Matthieu 491034ed0a [FIX] mail: to_read value of _message_get_dict
bzr revid: chm@openerp.com-20121019131358-xn3b8yyepscsrad7
2012-10-19 15:13:58 +02:00
Christophe Matthieu 35b6725f3f [FIX] mail: sort of expandable message
bzr revid: chm@openerp.com-20121019123816-dzortu46e3fofmxp
2012-10-19 14:38:16 +02:00
Thibault Delavallée e46ddc2c21 [REV] mail_message: vote_toggle and favorite_toggle back as SUPERUSER_ID, because of access rights issues for people not being able to write on the mail.message.
bzr revid: tde@openerp.com-20121019120616-pw8yop07fo1i2vu2
2012-10-19 14:06:16 +02:00
Christophe Matthieu dfa34c0254 [IMP] mail: auto open and close the compose form on the threads
bzr revid: chm@openerp.com-20121019113951-pz44iipv45misvgk
2012-10-19 13:39:51 +02:00
Thibault Delavallée fbb80f4ba6 [REVIEW] mail: some code cleanup before merging.
mail.message: fixed to_read condition
mail.message: cleaned message_read code
mail.thread: fixed mega security hole, giving superuser rights when creating objects in mail.thread

bzr revid: tde@openerp.com-20121019095919-xa95j10f22va6djm
2012-10-19 11:59:19 +02:00
Thibault Delavallée 347be7b72c [FIX] mail_message: fixed message_read adding too much expandables, due to bad code indentation.
bzr revid: tde@openerp.com-20121019091329-5jnht3of77zqukl0
2012-10-19 11:13:29 +02:00
Christophe Matthieu 97d11807aa [MERGE] form trunk-openchater-mailbox-chm
bzr revid: chm@openerp.com-20121019090252-66g96eu83bvernbv
2012-10-19 11:02:52 +02:00
Thibault Delavallée 91f4e942db [IMP] mail: star is renamed as favorite (propagated changes through module); added views for this model in technical feature, under emails. Cleaned message_read and message_read_get_expandable because the code was quite obfuscated.
bzr revid: tde@openerp.com-20121018152322-cakaas3a77h1pi7m
2012-10-18 17:23:22 +02:00
Thibault Delavallée 93b545357d [FIX] mail_message: fixed various bigs introduced when merging trunk.
bzr revid: tde@openerp.com-20121018131850-t4d4o38jyma8uaa1
2012-10-18 15:18:50 +02:00
Thibault Delavallée 7c142d5a5c [MERGE] Merged with addons/trunk, re-done to get last fixes from trunk.
bzr revid: tde@openerp.com-20121018130049-d2cisvw7g503chvs
bzr revid: tde@openerp.com-20121018130601-nj99fd1a5ok7r952
2012-10-18 15:06:01 +02:00
Thibault Delavallée 1737a3161b [REVIEW] Cleaning before merging.
bzr revid: tde@openerp.com-20121018093453-trijh79z0j7oha6f
2012-10-18 11:34:53 +02:00
Christophe Matthieu 68d1041d64 [FIX] mail: fix the notify followers
bzr revid: chm@openerp.com-20121018085424-hfspxqcpo2p5ya6t
2012-10-18 10:54:24 +02:00
Thibault Delavallée bd1d7f9e78 [FIX] mail_message: browse -> read in get_record_name.
bzr revid: tde@openerp.com-20121017161245-6j28vno604lm8zny
2012-10-17 18:12:45 +02:00
Thibault Delavallée fe93cea517 [IMP] mail: added to_read field on mail.message, based on unread notifications. When setting a notification as (un)read, it now creates a notification if it does not exist.
bzr revid: tde@openerp.com-20121017155733-8gpb5goyiomsop2x
2012-10-17 17:57:33 +02:00
Thibault Delavallée 3c7efc0de5 [FIX] Mailboxes: now post on res.users, with correct uid. Posts on res.users usign message_post_api are redirected to the related partner.
bzr revid: tde@openerp.com-20121017143335-xxgfe1fsqqwz2gon
2012-10-17 16:33:35 +02:00
Thibault Delavallée d24c21222e [REM] mail: removed is_private on mail.message model. Updated models and widgets accordingly.
bzr revid: tde@openerp.com-20121017141933-uwbgqn041mvdtp7p
2012-10-17 16:19:33 +02:00
Thibault Delavallée 1fd3eadaad [FIX] mail_message: fixed errors in message_read.
bzr revid: tde@openerp.com-20121017135451-bschq7nhcace0638
2012-10-17 15:54:51 +02:00
Thibault Delavallée fc815ba415 [REF] mail_message: message_read: re-implementation using read instead of browse, to avoid access rights issues. Fixed call in js; updated mail_follower and mail about set_value becoming render_value.
bzr revid: tde@openerp.com-20121017134449-l8gyp8l5e6ogcx3a
2012-10-17 15:44:49 +02:00
Christophe Matthieu ec88647be0 [IMP] mail: attachment res_model, read => to_read
bzr revid: chm@openerp.com-20121017093559-fndir3gssokoda7v
2012-10-17 11:35:59 +02:00
Christophe Matthieu e8bd522f6b [IMP] mail: prepare js for dom
bzr revid: chm@openerp.com-20121017001320-wmxtng544wc3whd3
2012-10-17 02:13:20 +02:00
Christophe Matthieu 54f54d3150 [IMP] mail: display options
bzr revid: chm@openerp.com-20121016124105-o5ciewoxm1j79lfr
2012-10-16 14:41:05 +02:00
Christophe Matthieu 0e4fcab679 [IMP] mail: hierarchy/flat options
bzr revid: chm@openerp.com-20121016113841-gqgq8oz89yc2gma7
2012-10-16 13:38:41 +02:00
Christophe Matthieu 7084273c5c [IMP]mail, openchatter: read/unread
bzr revid: chm@openerp.com-20121016082718-j0vlptofi2w0hikw
2012-10-16 10:27:18 +02:00
Christophe Matthieu f71d09a7db [IMP]mail: js dataset, context
bzr revid: chm@openerp.com-20121015160324-tspchfwxg3v8nt2o
2012-10-15 18:03:24 +02:00
Christophe Matthieu 44646f0da0 [IMP]mail/mailbox: js optimisation
bzr revid: chm@openerp.com-20121015141731-0nssfnal6lmua9ap
2012-10-15 16:17:31 +02:00
Christophe Matthieu a88378cd4c [IMP]mail: stared/unstared
bzr revid: chm@openerp.com-20121012152505-1rmms2k10vjr3yd4
2012-10-12 17:25:05 +02:00
Christophe Matthieu fea03dc5d4 [IMP]mail: access/expandable
bzr revid: chm@openerp.com-20121012132600-wudojx5l17ptiugy
2012-10-12 15:26:00 +02:00
Christophe Matthieu 407a7eca27 [IMP]mail: reply to parent : author and partners
bzr revid: chm@openerp.com-20121012130232-5enz0p8vd0ta85o3
2012-10-12 15:02:32 +02:00
Christophe Matthieu adc318837a [IMP]mail: secu
bzr revid: chm@openerp.com-20121012124003-zs8uj68gr1upgc57
2012-10-12 14:40:03 +02:00
Christophe Matthieu 4a77345f63 [IMP] mail, following: access
bzr revid: chm@openerp.com-20121011161614-k72bm2f6gw451u5g
2012-10-11 18:16:14 +02:00
Christophe Matthieu 540248ed9e [IMP] mail: cleaner code
bzr revid: chm@openerp.com-20121011104048-4vy0k8pp1rrjug1k
2012-10-11 12:40:48 +02:00
Christophe Matthieu 49a174df57 [IMP] chatter, follower: html/js for css imp
bzr revid: chm@openerp.com-20121010181611-rl167r9h0ejz8zdu
2012-10-10 20:16:11 +02:00
Christophe Matthieu 20d8b0fc76 [MERGE] from trunk
bzr revid: chm@openerp.com-20121010112018-oswe04e2j0o95dry
2012-10-10 13:20:18 +02:00
Olivier Dony 7f516d2835 [FIX] mail.message: incorrect message-id generation, id/model were swapped
For backwards-compatibility reasons we need to stick
with this format: `res_id-model`, even if reversing
the values would look more logical

bzr revid: odo@openerp.com-20121009135040-spvejc1l4mos25yv
2012-10-09 15:50:40 +02:00
Christophe Matthieu 2e4a6953c4 [IMP] mail: attachment
bzr revid: chm@openerp.com-20121009132824-dsl7f02hxfpypc0w
2012-10-09 15:28:24 +02:00
Olivier Dony 099825109e [FIX] mail.message: catch more error cases when trying to resolve msg author + lint cleanup
bzr revid: odo@openerp.com-20121009131911-6lo2knsrh2qgrxv8
2012-10-09 15:19:11 +02:00
Christophe Matthieu 52f8ea85c8 [IMP] mail: get free user attachment
bzr revid: chm@openerp.com-20121009084436-13r1hz3movoupvmh
2012-10-09 10:44:36 +02:00
Christophe Matthieu 9ca47b7f99 [IMP]mail chatter: wizard liked
bzr revid: chm@openerp.com-20121005122741-a0hwb656ww61qcro
2012-10-05 14:27:41 +02:00
Christophe Matthieu df5071c896 [IMP] mail chatter: compose mail in js, less request
bzr revid: chm@openerp.com-20121005104654-t5lholex2gh11y15
2012-10-05 12:46:54 +02:00
Antony Lesuisse 3c26ec305a [IMP] mail: move the code from publisher_warranty to mail
bzr revid: stw@openerp.com-20121004044624-hwa3kztl58zrjguh
2012-10-04 06:46:24 +02:00
Olivier Dony 3744f5c402 [REV] Revert last commit, breaks tests
bzr revid: odo@openerp.com-20121003153306-e2ugphdyijvq8x6l
2012-10-03 17:33:06 +02:00
Christophe Matthieu 27d3070220 [IMP] mail: private message
bzr revid: chm@openerp.com-20121003142712-rkadw5oii3tt5o1u
2012-10-03 16:27:12 +02:00
Christophe Matthieu 40f04361c0 fixes
bzr revid: chm@openerp.com-20121003100952-e5v8ncgshra3uitc
2012-10-03 12:09:52 +02:00
Christophe Matthieu 775f0d32de [IMP]mail: domain/search
bzr revid: chm@openerp.com-20121003084029-jc184upr1i1bmk4l
2012-10-03 10:40:29 +02:00
Christophe Matthieu c28a29c44c [IMP]mail: expandable py
bzr revid: chm@openerp.com-20121003072845-64bufx2dj3qdpjm2
2012-10-03 09:28:45 +02:00
Christophe Matthieu 09763017a5 [IMP]mail: read_more with expandable, debug
bzr revid: chm@openerp.com-20121002151245-yhltbv3r9fo16qek
2012-10-02 17:12:45 +02:00
Christophe Matthieu 1ab943d7f0 [IMP]mail: read_more with expandable
bzr revid: chm@openerp.com-20121002134843-fzci9tizw6pxsra4
2012-10-02 15:48:43 +02:00
Christophe Matthieu 8cafaceb4a [MERGE]from trunk-openchatter-chm
bzr revid: chm@openerp.com-20121002105328-1u9qk83fb5jz9teh
2012-10-02 12:53:28 +02:00
Christophe Matthieu b6bb3fbde1 [IMP]mail: js
bzr revid: chm@openerp.com-20121002105235-pxap9qmfht35mc7z
2012-10-02 12:52:35 +02:00
Fabien Pinckaers ee5f1e57ff [FIX] tests on mails
bzr revid: fp@openerp.com-20121001210653-ss4uqv7ij1mobuwc
2012-10-01 23:06:53 +02:00
Christophe Matthieu f0e4dfe42f [IMP] mail: js, xml, Full reply; py read_message
bzr revid: chm@openerp.com-20121001175225-g27s6gtn2fmullgo
2012-10-01 19:52:25 +02:00
Christophe Matthieu c75b23c95d [IMP]mail: loader, vote, js and xml
bzr revid: chm@openerp.com-20121001093633-o0awtxy60prsj78f
2012-10-01 11:36:33 +02:00
Atul Patel (OpenERP) 7d03e6bd0f [MERGE]: Merged with lp:openobject-addons
bzr revid: atp@tinyerp.com-20121001060438-laikbtaqxu0xq59m
2012-10-01 11:34:38 +05:30
Christophe Matthieu 24aea1657c [IMP] mail
bzr revid: chm@openerp.com-20120928145147-3g5iptsnknvbh4py
2012-09-28 16:51:47 +02:00
Christophe Matthieu 20f6a39089 [IMP]mail thread: load only not loaded message
bzr revid: chm@openerp.com-20120928132723-xg2y8j3ebu9a9huv
2012-09-28 15:27:23 +02:00
Christophe Matthieu 523d10017e [IMP] mail/chatter: in progress
bzr revid: chm@openerp.com-20120927134823-tkwllczna72hb1th
2012-09-27 15:48:23 +02:00
Christophe Matthieu 4ddb50dbf9 [IMP] mail: subtype adapted for css onhover box
bzr revid: chm@openerp.com-20120926071709-v51ra4mzn2hp121j
2012-09-26 09:17:09 +02:00
Atul Patel (OpenERP) 1283e945bd [MERGE]: Merged lp:~openerp-dev/openobject-addons/trunk-mail_message_read_unread-atp-read_unread-nco
bzr revid: atp@tinyerp.com-20120921121216-gcan2n01zk4u3xnv
2012-09-21 17:42:16 +05:30
Christophe Matthieu fa63653de9 [MERGE] from trunk-mail-mail-rules-tde
bzr revid: chm@openerp.com-20120921095037-czl4s3v0do11yhkq
2012-09-21 11:50:37 +02:00
Christophe Matthieu f859eab08a [MERGE] from trunk-message_read-tde
bzr revid: chm@openerp.com-20120921084703-c4j4byp65tbx9i55
2012-09-21 10:47:03 +02:00
Thibault Delavallée a514ed0208 [FIX] message_read: added back the limit, removed for ... well, I do not know.
bzr revid: tde@openerp.com-20120920151819-kra9h7nqzw7fq12d
2012-09-20 17:18:19 +02:00
Thibault Delavallée 3774f6d545 [IMP] [FIX] Chatter: fixed load more, message_read and expandables. Cleaned tests.
bzr revid: tde@openerp.com-20120920144645-o92edguwjzws3t3e
2012-09-20 16:46:45 +02:00
Thibault Delavallée 91cd539541 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120920125938-brd60c8kf6zpy20a
2012-09-20 14:59:38 +02:00
Thibault Delavallée ed3518d858 [CLEAN] Cleaned subtype model, implementation and tests. Added a message_subtype_data field, holding data about subtypes. This will allow to avoid doing too much calls from the front-end.
bzr revid: tde@openerp.com-20120920101704-cri6zq7sqi7y660b
2012-09-20 12:17:04 +02:00