Commit Graph

674 Commits

Author SHA1 Message Date
Christophe Matthieu e40b49a838 [IMP] mail: htmlEntities for the author email, select list of new partner by real email
bzr revid: chm@openerp.com-20130104111004-9l0hb6zu33o5b2v6
2013-01-04 12:10:04 +01:00
Christophe Matthieu 8758afd045 [IMP] mail: js: get_from back to get_emails_from
bzr revid: chm@openerp.com-20121231143533-lpo5f2eg20zkf2el
2012-12-31 15:35:33 +01:00
Christophe Matthieu 876e53dfcf [IMP] mail: add email_from like partner before opening wizard composer
bzr revid: chm@openerp.com-20121231142250-ykdxaqoqfvush1ah
2012-12-31 15:22:50 +01:00
Christophe Matthieu 50ceb88012 [MERGE] mail: convert compact textarea in div for id rendering
bzr revid: chm@openerp.com-20121227135948-81vcv8737ztsyc6n
2012-12-27 14:59:48 +01:00
Thibault Delavallée ff4abc7e38 [FIX] Chatter: extra_emails: fixed deferreds wrongly used, leading to duplicate partners created when checking emails in the chatter.
bzr revid: tde@openerp.com-20121224105413-p56vhgxh5bg0rhu0
2012-12-24 11:54:13 +01:00
Christophe Matthieu 09dd7f22a0 [MERGE] from trunk
bzr revid: chm@openerp.com-20121221170432-6t90xtnxx27bw2ux
2012-12-21 18:04:32 +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 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
Christophe Matthieu 5ef06851b5 [MERGE] from trunk
bzr revid: chm@openerp.com-20121221134901-msdq5zr29946s757
2012-12-21 14:49:01 +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
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
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 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 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
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 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
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 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
Christophe Matthieu 9150d95062 [IMP] mail: add the readonly option on the field for the different views
bzr revid: chm@openerp.com-20121217093501-mxji9wb00xyvq35e
2012-12-17 10:35:01 +01:00
Christophe Matthieu c3d4d20d86 [IMP] mail: set default readonly to false
bzr revid: chm@openerp.com-20121217092428-s5a5thu4f1fjvejc
2012-12-17 10:24:28 +01:00
Christophe Matthieu af10943f7b [IMP] mail: add an option 'readonly' for the client action and activate readonly mode (hide the action buttons)
bzr revid: chm@openerp.com-20121217084116-i2cjdsk56pzz0kjh
2012-12-17 09:41:16 +01:00
Christophe Matthieu 072e24b8eb [FIX]mail: allow to click on partner when the user compose an empty message
bzr revid: chm@openerp.com-20121214102943-qcsyyua30j0rqajz
2012-12-14 11:29:43 +01:00
Christophe Matthieu 6e35fdb9f6 [FIX] mail: display of the placeholder
bzr revid: chm@openerp.com-20121214101428-7vnyjx2iyeel3wvv
2012-12-14 11:14:28 +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
Christophe Matthieu 6c73d8dff8 [IMP] web: move controler download_attachment into mail.
bzr revid: chm@openerp.com-20121211145343-jhjj9sohn2shkbt9
2012-12-11 15:53:43 +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 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 cf6b95e613 [IMP] mail: message error when the user must wait his attachment uploading
bzr revid: chm@openerp.com-20121207092806-w20k150gnvs4hufj
2012-12-07 10:28:06 +01:00
Christophe Matthieu f8c206b1b8 [IMP] mail: display message attachment error
bzr revid: chm@openerp.com-20121207090941-65b2vgwy066wlsmg
2012-12-07 10:09:41 +01:00
Christophe Matthieu 84ac690b92 [IMP] mail: fix attachment error
bzr revid: chm@openerp.com-20121207084610-979a5om26shed1ak
2012-12-07 09:46:10 +01:00
Christophe Matthieu 1737ac04f2 [MERGE] from trunk
bzr revid: chm@openerp.com-20121207082734-9u0jb9zqbmz49f43
2012-12-07 09:27:34 +01:00
Thibault Delavallée 08e746f4e9 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121206090336-g1yb1hjzmw54y3ut
2012-12-06 10:03:36 +01:00
Christophe Matthieu 12404525b1 [FIX] mail: on_scroll activate expandable message, reverse order of messages for the root thread.
bzr revid: chm@openerp.com-20121205142523-3xl8go4stwitwkep
2012-12-05 15:25:23 +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 96cd88b04c [MERGE] from trunk-patest-w45: date and timerelative with timezone
bzr revid: chm@openerp.com-20121203113044-p7xbxnva5kg9xbpu
2012-12-03 12:30:44 +01:00
Christophe Matthieu b577b29487 [MERGE] from trunk
bzr revid: chm@openerp.com-20121203091951-fd9dn570gfv13edr
2012-12-03 10:19:51 +01:00
Christophe Matthieu d945cd6555 [FIX] mail: show_link in js file
bzr revid: chm@openerp.com-20121130160350-7axzlna6254r4u1u
2012-11-30 17:03:50 +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
Christophe Matthieu 48c6ea72ff [FIX] web form : catch and display error when there are an error in an attachment upload
bzr revid: chm@openerp.com-20121130090655-gmymwe1z1ofl7wn9
2012-11-30 10:06:55 +01:00
Thibault Delavallée 66f11ca3df [FIX] mail.js: removed default values for non-existing field anymore. Added a comment to fix it really asap.
bzr revid: tde@openerp.com-20121129145601-m9exd1awcaes79zj
2012-11-29 15:56:01 +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
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
Christophe Matthieu e81ea77fa2 [MERGE] from trunk
bzr revid: chm@openerp.com-20121129094553-n30aju91kj40cbg6
2012-11-29 10:45:53 +01:00
Christophe Matthieu c491c532c0 [FIX] mail: don't display false value as body
bzr revid: chm@openerp.com-20121128160134-kbjfov5vvuxtcow6
2012-11-28 17:01:34 +01:00
Thibault Delavallée 37e7d2048b [DOC] mail.js: updated the comment of on_message_read_unread.
bzr revid: tde@openerp.com-20121128153843-4p24erdrkpzmrhnu
2012-11-28 16:38:43 +01:00
Christophe Matthieu 6b5bdc7e84 [IMP] mail: add option copose_as_todo, to mark as todo the messages wrote by the composer of the root thread
bzr revid: chm@openerp.com-20121128145101-7lnw7zfrjp5k8fg3
2012-11-28 15:51:01 +01:00
Christophe Matthieu 89fce59283 [IMP] mail: not display the 'no message' before to fetch the wall messages.
bzr revid: chm@openerp.com-20121128113421-rcoo4003npxtnfzb
2012-11-28 12:34:21 +01:00
Xavier Morel a698e32152 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121127121103-ge0xrrep2zrahyf9
2012-11-27 13:11:03 +01:00
Xavier Morel 1f65f9a6fc [FIX] mail uses session, not instance
bzr revid: xmo@openerp.com-20121126140356-lvlky0ctjt9yeh4p
2012-11-26 15:03:56 +01:00
Xavier Morel 5c5b46a536 [FIX] replace edc calls
bzr revid: xmo@openerp.com-20121126105131-5g4e9tl0w01v398u
2012-11-26 11:51:31 +01:00
Christophe Matthieu 83ed2c955b [FIX] mail: event click on compose button on wall for firefox
bzr revid: chm@openerp.com-20121123110156-kz32k4871slnlxa4
2012-11-23 12:01:56 +01:00
Christophe Matthieu 50fcf01492 [IMP] mail: add documentations and comments
bzr revid: chm@openerp.com-20121123094659-sgkha5v1o3paqzw8
2012-11-23 10:46:59 +01:00
Christophe Matthieu 18ec2c978e [IMP] mail: add an show_link_partner params to display partner (authors, followers...) on link or not, for portal
bzr revid: chm@openerp.com-20121122154712-4wmjfy0v8trwq4cw
2012-11-22 16:47:12 +01:00
Christophe Matthieu 22fe97c509 [FIX] mail: concatenation of expandable messages
bzr revid: chm@openerp.com-20121122131827-cap2xfzgjh6ajoss
2012-11-22 14:18:27 +01:00
Christophe Matthieu 5fe04e7ce4 [IMP] mail: add fadeIn
bzr revid: chm@openerp.com-20121122100448-10szzpxz5o5dif4b
2012-11-22 11:04:48 +01:00
Christophe Matthieu 5d4b582467 [FIX] mail: auto-focus for composer
bzr revid: chm@openerp.com-20121122090201-gbpr2f9bmad6aw0k
2012-11-22 10:02:01 +01:00
Christophe Matthieu 7921e44995 [IMP] mail: break-word, css, help, button name
bzr revid: chm@openerp.com-20121122083837-578ffj6wcu5hs0z4
2012-11-22 09:38:37 +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 3001a4dd49 [REV] Chatter: reverted hack about reloading menus.
bzr revid: tde@openerp.com-20121120090602-un5239e4yl3xcob6
2012-11-20 10:06:02 +01:00
Jigar Amin 1387cd9bca [IMP] Fix the timeagolib timezone conversion and passing timezone datetime string
bzr revid: jam@tinyerp.com-20121120060030-33w2u9v72kazd3ns
2012-11-20 11:30:30 +05:30
Thibault Delavallée 4d79649b55 [REV] Removed fix, to be inserted in a specific branch.
bzr revid: tde@openerp.com-20121119114125-51fhctk8n79ptx65
2012-11-19 12:41:25 +01:00
Christophe Matthieu 1ec9878370 [FIX] mail: do not display the body message false value
bzr revid: chm@openerp.com-20121119110158-iw2i7qt422fqatvm
2012-11-19 12:01:58 +01:00
ajay javiya (OpenERP) c984e286f6 [FIX]:fix issue for launch security and user message
bzr revid: aja@tinyerp.com-20121119092652-69f58c4au9rlei95
2012-11-19 14:56:52 +05:30
Thibault Delavallée 5747c6fddc [HACK] Temp hack about reloading menus.
bzr revid: tde@openerp.com-20121116171100-h2to6ij4p5idcui9
2012-11-16 18:11:00 +01:00
Thibault Delavallée 1631811168 [CLEAN] mail.js: removed some console.log
bzr revid: tde@openerp.com-20121116112712-wu63i6qq2x8g4huk
2012-11-16 12:27:12 +01:00
Thibault Delavallée aeecd20324 [FIX] mail: fixed a bug when replying to a private message, leading to a non-existent thread dataset. Should be mail.thread by default, only for the dataset, not anything else I think.
bzr revid: tde@openerp.com-20121116102143-jq2o0e5by76zv12w
2012-11-16 11:21:43 +01:00
Thibault Delavallée 99c1145d81 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121115131824-60tl5f9hvxpca827
bzr revid: tde@openerp.com-20121115181930-ypj3zbdhg9bvcdf5
2012-11-15 19:19:30 +01:00
Thibault Delavallée da9951baf9 [CLEAN] removed a commented statement, fixed a var name in js.é
bzr revid: tde@openerp.com-20121115124931-w20igi8qk66uvnj0
2012-11-15 13:49:31 +01:00
Christophe Matthieu f3bba6c77b [FIX] mail: do not convert text on html when the user post a message with the widget to message_post_api
bzr revid: chm@openerp.com-20121115102522-sicesckcupbh1nnc
2012-11-15 11:25:22 +01:00
Christophe Matthieu 3918c05a37 [MERGE] from trunk
bzr revid: chm@openerp.com-20121115101056-m96xojis7lky8xcn
2012-11-15 11:10:56 +01:00
Christophe Matthieu 3f655858d8 [IMP] mail: the placeholder of textarea on compose message can be custom with an attribute placeholder on the field
bzr revid: chm@openerp.com-20121115100542-7gigxjnxjloqt8ue
2012-11-15 11:05:42 +01:00
Thibault Delavallée 9aec899257 [FIX] Chatter: fixed rpely to a lonely message, that was badly indented.
bzr revid: tde@openerp.com-20121115100533-ly99op6fpfrzp9jw
2012-11-15 11:05:33 +01:00
Thibault Delavallée 25c684b171 [FIX] Chatter: fixed posting on user/partner. Cleaned a bit default options of mail.js.
bzr revid: tde@openerp.com-20121115095400-u7h6rw8ltp0xprtt
2012-11-15 10:54:00 +01:00
Christophe Simonis fa8463f804 [FIX] use session.url()
bzr revid: chs@openerp.com-20121114174258-ly0dniub0k383045
2012-11-14 18:42:58 +01:00
Christophe Matthieu b581043859 [FIX] mail: expandable insert after
bzr revid: chm@openerp.com-20121114155325-kuqyke9hcfmb0yyb
2012-11-14 16:53:25 +01:00
Thibault Delavallée 48ce331544 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121114154021-vsllo3keszi9732d
2012-11-14 16:40:21 +01:00
Christophe Matthieu 7885518850 [FIX] mail: insert new message on the wall and indented the reply of this message
bzr revid: chm@openerp.com-20121114153022-i6xv4v2jqxx8w39r
2012-11-14 16:30:22 +01:00
Christophe Matthieu d282df466c [FIX] mail: do not display record_name when the user is on a document
bzr revid: chm@openerp.com-20121114132517-6c5rfiikkuchcmxx
2012-11-14 14:25:17 +01:00
Christophe Matthieu a43662d125 [IMP] mail: change the header title and description for each mailbox and group discussion
bzr revid: chm@openerp.com-20121114122033-dl70fqty2kbd5gj1
2012-11-14 13:20:33 +01:00
Christophe Matthieu 4a91e273a8 [IMP] mail: unactivate reload menu
bzr revid: chm@openerp.com-20121114104717-zi5yl3knyhf7xgev
2012-11-14 11:47:17 +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
Christophe Matthieu 62b376307b [IMP] mail: change the counter of the need action menu when a message is read. Actually reload all the widget menu but we can upgrade and change the number only (less request)
bzr revid: chm@openerp.com-20121114082659-31vxgq5synhdpobl
2012-11-14 09:26:59 +01:00
Christophe Matthieu 183bc922c1 [FIX] mail: fix the openchatter reload when the user change of record view (click on next, delete...)
bzr revid: chm@openerp.com-20121113145722-72d2j7eiaxxlp6ys
2012-11-13 15:57:22 +01:00
Frédéric van der Essen b00a0ab711 [IMP] attachements are now always displayed
bzr revid: fva@openerp.com-20121113145453-35v399hqgz201ndj
2012-11-13 15:54:53 +01:00
Thibault Delavallée 0f3845bee6 [FIX] [CLEAN] mail.js: removed references to mail.thread. There shouldnot have been any of them left...
bzr revid: tde@openerp.com-20121113142759-wwhd3bssent1861a
2012-11-13 15:27:59 +01:00
Christophe Matthieu 99354ab558 [MERGE] form trunk-openchatter-needaction-chm + code review
bzr revid: chm@openerp.com-20121113131448-ebt0sr5it4lbk1l1
2012-11-13 14:14:48 +01:00
Christophe Matthieu b8f7e37715 [FIX] mail: openchatter reload message_ids for form view
bzr revid: chm@openerp.com-20121113125651-cq67yb0g5n66ej55
2012-11-13 13:56:51 +01:00
Christophe Matthieu cf4d660ce5 [FIX] mail: do not destroy double message if there are no message.id (for expandable message)
bzr revid: chm@openerp.com-20121113105850-ur1h9igelvk4uzcj
2012-11-13 11:58:50 +01:00
Fabien Pinckaers ccc8069a4c [IMP] style of empty mail boxes
bzr revid: fp@tinyerp.com-20121112183919-oh8ccaz2w3nnvf2h
2012-11-12 19:39:19 +01:00
Christophe Matthieu 99525e3a54 [FIX] mail: partner avatar is email_icon when there are no partner or partner_id is null
bzr revid: chm@openerp.com-20121112152753-houzjde3x8jfwtks
2012-11-12 16:27:53 +01:00
Christophe Matthieu 52ea928041 [FIX] mail: suppress id on expandable message, for not mark message as read/unread when the message is not loaded
bzr revid: chm@openerp.com-20121112143431-ybztdpcdacvfm293
2012-11-12 15:34:31 +01:00
Christophe Matthieu 3fd509b634 [IMP] mail: change the counter of the need action menu when a message is read. Actually reload all the widget menu but we can upgrade and change the number only (less request)
bzr revid: chm@openerp.com-20121112095941-yitxdd3dpjox4das
2012-11-12 10:59:41 +01:00
Christophe Matthieu 6bf37ebb14 [FIX] mail: To: Followers of 'Undefined' became To: Followers of this document
bzr revid: chm@openerp.com-20121112083936-i87pc2fecce7ektg
2012-11-12 09:39:36 +01:00
Christophe Matthieu d8bc98b989 [FIX] mail: flat_mode is a boolean
bzr revid: chm@openerp.com-20121112083023-dfhzi3ad7ilhg297
2012-11-12 09:30:23 +01:00
Christophe Matthieu 8098113cb9 [FIX] mail: add return false on read and vote js function for disable link after load function
bzr revid: chm@openerp.com-20121112082714-ih2zuw0k4wjti23e
2012-11-12 09:27:14 +01:00