Commit Graph
359 Commits
Author SHA1 Message Date
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