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
Thibault Delavallée
fa27dde6c9
[MERGE] Merged with addons/trunk.
...
bzr revid: tde@openerp.com-20120919111000-w3xmyatd6new8ghm
2012-09-19 13:10:00 +02:00
Thibault Delavallée
470c0fa818
[IMP] mail_mesage: fixed message_dict_get (getting values is now inside try/except, not having access rigths on some details of the mail.message should not crash, just hide the data); My Feeds -> My Posts; mis cleaning in mail.js, xml and css.
...
bzr revid: tde@openerp.com-20120919101339-d1k16lxk5e4gwxxg
2012-09-19 12:13:39 +02:00
Thibault Delavallée
585ec570d2
[MERGE] Merged with addons/trunk.
...
bzr revid: tde@openerp.com-20120918155905-rkdtkuu559ii0e6p
bzr revid: tde@openerp.com-20120919075051-zjxrbcbltrlp8h4k
2012-09-19 09:50:51 +02:00
Nimesh (Open ERP)
b343ad5f0c
[MERGE] merge with lp:~openerp-dev/openobject-addons/trunk-mail_message_read_unread-atp
...
bzr revid: nco@tinyerp.com-20120919055149-50at76nd566vbbp0
2012-09-19 11:21:49 +05:30
Thibault Delavallée
2183358164
[CLEAN] mail: vote: cleaned before merging.
...
bzr revid: tde@openerp.com-20120918150544-2pgwh1mhi5yyqi22
2012-09-18 17:05:44 +02:00
Nimesh (Open ERP)
bbf40f3d7e
[IMP] impove the read message to set msg read.
...
bzr revid: nco@tinyerp.com-20120918122359-uppqkoba9xxj8jst
2012-09-18 17:53:59 +05:30
Thibault Delavallée
cd7bf7b2d2
[CLEAN] mail: vote backend: cleaned code.
...
bzr revid: tde@openerp.com-20120918122139-543zxiuxytdzlqtk
2012-09-18 14:21:39 +02:00
Nimesh (Open ERP)
4b68f64473
[ADD] add context to client action and improve read method for set read message by user.
...
bzr revid: nco@tinyerp.com-20120918084731-eed2ssuzhw7woi78
2012-09-18 14:17:31 +05:30
Thibault Delavallée
6433a61ec4
[FIX] mail_message: in check_access_rules, use self._table instead of hadcodded mail_message; fix a bug hwen using mail_compose_message. TODO: check if this model has to use the rule checking or not.
...
bzr revid: tde@openerp.com-20120917160435-9ktdy4vpznvwr51s
2012-09-17 18:04:35 +02:00
Thibault Delavallée
3f63690a5a
[FIX] mail_message: in a search of function field on mail.message, replaced a browse by a read, to avoid access rights issues (user.partner_id).
...
bzr revid: tde@openerp.com-20120917095110-w5lxoykyrk3aa3yf
2012-09-17 11:51:10 +02:00
Thibault Delavallée
f641508fe3
[FIX] mail_message: fixed check_access_rule and misc acces issues.
...
bzr revid: tde@openerp.com-20120914161633-bpg65bl6i0wxu8k2
2012-09-14 18:16:33 +02:00
Thibault Delavallée
2909c507af
[FIX] mail_message: message_read evaluates the message domain as SUPERUSER (because even anonymous people will have a wall, and therefore evaluate notifications.partner_id.users_ids).
...
bzr revid: tde@openerp.com-20120914122139-dv1xlinpgvd4dw7g
2012-09-14 14:21:39 +02:00
Thibault Delavallée
9a9a56fa49
[WIP] [FIX] mail: fixing access rights: second turn of update.
...
bzr revid: tde@openerp.com-20120914115107-mtgu8soy3ck5xgir
2012-09-14 13:51:07 +02:00
Sanjay Gohel (Open ERP)
2abba24ef3
[MERGE]merge with parent branch
...
bzr revid: sgo@tinyerp.com-20120914053347-u28fihi7mcetup4j
2012-09-14 11:03:47 +05:30
Sanjay Gohel (Open ERP)
a807b57f4e
[MERGE]merge with trunk addons
...
bzr revid: apa@tinyerp.com-20120911054811-24s3e1perqf7x1wo
bzr revid: apa@tinyerp.com-20120911084547-trlru6t8r1dv1yhd
bzr revid: apa@tinyerp.com-20120912050215-glxhb94pu2aed5fz
bzr revid: apa@tinyerp.com-20120913050959-re58fqvnaqrhgzg0
bzr revid: sgo@tinyerp.com-20120914053201-khnzm9ei7rpjcp7u
2012-09-14 11:02:01 +05:30
Atul Patel (OpenERP)
9883a6c825
[MERGE]: Merged with lp:openobject-addons
...
bzr revid: atp@tinyerp.com-20120912174620-3kjdtcy77wihgeg7
bzr revid: atp@tinyerp.com-20120914044722-xu7x32rzapnl50tp
2012-09-14 10:17:22 +05:30
Thibault Delavallée
f6ed42db86
[WIP] [FIX] mail: fixing access rights + related tests. WIP, already fixed mail.group and mail.alias, not readable by anonymous not-employee users.
...
bzr revid: tde@openerp.com-20120913170500-um93rzw0nq6njl39
2012-09-13 19:05:00 +02:00
Thibault Delavallée
3180b4def5
[CLEAN] mail: cleaned mail-invite before merging. Updated some methods and var names; updated some comments.
...
bzr revid: tde@openerp.com-20120913154844-i5tikncn3sxepk34
2012-09-13 17:48:44 +02:00
Thibault Delavallée
b2c79d266b
[FIX] mail_message: fixed record_name, because we could call a name_get on a document we can not see (if we are in the recipints of a document we can not access). name_get is therefore inside a try/except statement, getting a void string as result if AccessDenied is raised. Updated JS to avoid displaying the record name on a void string.
...
bzr revid: tde@openerp.com-20120913121110-bd0syf813h0e39gk
2012-09-13 14:11:10 +02:00
Sanjay Gohel (Open ERP)
b6e298534c
[MERGE]merge with parent branch
...
bzr revid: sgo@tinyerp.com-20120913053647-12otf3bev3rap3l7
2012-09-13 11:06:47 +05:30
Atul Patel (OpenERP)
f09dca2042
[MERGE]: Merged lp:~openerp-dev/openobject-addons/trunk-openchatter-mail_vote-part-4-atp-vote_improvemet-nco with some improvement..
...
bzr revid: atp@tinyerp.com-20120912165720-kqkochsbub3ootkz
2012-09-12 22:27:20 +05:30
Thibault Delavallée
2b7112d7ae
[MERGE] Merged with addons/trunk.
...
bzr revid: tde@openerp.com-20120912142748-mnsaftqea2anwkrc
2012-09-12 16:27:48 +02:00
Thibault Delavallée
828ed33de7
[ADD] mail: added Invite wizard, allowing to add partners to the followers.
...
bzr revid: tde@openerp.com-20120912133522-af5dvae1rmburfwy
2012-09-12 15:35:22 +02:00
Nimesh (Open ERP)
2b8e7613a0
[IMP] reduce the call when rendering vote, do the related changes in py, and improve the code for js and py
...
bzr revid: nco@tinyerp.com-20120912125623-ffrhgf84ttosjx44
2012-09-12 18:26:23 +05:30
Sanjay Gohel (Open ERP)
ce39ffe927
[IMP]changed as per new spec update and make it work for crm changes done in crm
...
bzr revid: sgo@tinyerp.com-20120912112245-3cp03024fiqb47qs
2012-09-12 16:52:45 +05:30
Thibault Delavallée
dfa14420d2
[WIP] mail_message: continued work on message_read and expandables.
...
bzr revid: tde@openerp.com-20120911120117-xeeercvglfwq3c9e
2012-09-11 14:01:17 +02:00
Thibault Delavallée
741bbaa9f4
[WIP] mail_message.message_read(): WIP about having correct expandables. Will be updated next week.
...
bzr revid: tde@openerp.com-20120907160920-4ijs93y9ogp39xma
2012-09-07 18:09:20 +02:00
Atul Patel (OpenERP)
e82782e1f6
[FIX]: replace vote_user_ids inplace of vote_ids.
...
write or update vote_ids
bzr revid: atp@tinyerp.com-20120907121028-oyklpcccxb0ewv21
2012-09-07 17:40:28 +05:30
Thibault Delavallée
910bc5f00a
[REV] Reverted hack about attachments, that was not good.
...
bzr revid: tde@openerp.com-20120907115422-zfynv8pdsxk5p3vg
2012-09-07 13:54:22 +02:00
Thibault Delavallée
9b9bdae9e0
[IMP] composer: attachments are attached to the mail.compose.message record, not the related document anymore. This way, when deleting the mail.compose.message, attachments will be unlinked. Added deletion cascaded to res_model and res_id = 0, because of attachments added on a not-already-saved composer. BTW, cleaned mail/__openerp__.py.
...
bzr revid: tde@openerp.com-20120906134201-8845xov0mjbxh8mr
2012-09-06 15:42:01 +02:00
Thibault Delavallée
a1fe453223
[IMP] mail_message: attachments deleted when unlinking are those with model=self._name, not only 'mail.mesage'. This allows to remove the unlink override in mail.compose.message.
...
bzr revid: tde@openerp.com-20120906125217-27nlyveznh12bk63
2012-09-06 14:52:17 +02:00
Atul Patel (OpenERP)
d3ba827de7
[MERGE]: Merged with lp:openobject-addons
...
bzr revid: atp@tinyerp.com-20120906113441-sutt7m5zv1wa0814
2012-09-06 17:04:41 +05:30
Thibault Delavallée
8303bef9ba
[IMP] Chatter: added support for attachments.
...
bzr revid: tde@openerp.com-20120906111444-n7bsjv0f10p9c3x4
2012-09-06 13:14:44 +02:00
Sanjay Gohel (Open ERP)
4707ee56a9
[IMP]add context to the method
...
bzr revid: sgo@tinyerp.com-20120906094123-ua4zxhot0z3wgd7g
2012-09-06 15:11:23 +05:30
Amit Patel (OpenERP)
1334eb7a0d
[MERGE]:trunk-mail-cleaning-fp
...
bzr revid: apa@tinyerp.com-20120906061835-gb317yvqnd5vaiei
2012-09-06 11:48:35 +05:30
Olivier Dony
20c8d13822
[FIX] mail.message: default order by `id` should work on expandable node as well - but this still looks ugly
...
bzr revid: odo@openerp.com-20120905234919-ty9eojpgyib3ohwd
2012-09-06 01:49:19 +02:00
Thibault Delavallée
9fb978ea81
[IMP] mail: added and cleaned the tests. Fixed various small bugs in composer. Fixed mail_message.message_read() and flattening algorithm. Cleaned tests for message_read to have a more precise test.
...
bzr revid: tde@openerp.com-20120905155319-wd168m5snb25ari9
2012-09-05 17:53:19 +02:00
Olivier Dony
5f1dce419b
[IMP] mail*: implement auto-deletion mechanism for mail.message, mail.mail and the attachment
...
This is based on the auto_delete flag on mail.mail
and the assumption that mail.mail records created
without a parent message will be deleted as a whole,
including the parent message and its attachments.
This is contrasted with mail.mail records created
for notifications regarding a mail.message, and therefore
created with an existing `mail_message_id` parent.
For this last case the parent must not be deleted
along with the child mail.mail, as it exists on its own.
bzr revid: odo@openerp.com-20120905151950-7jv6hi0x5fx5iytp
2012-09-05 17:19:50 +02:00
Sanjay Gohel (Open ERP)
43c71f585e
[MERGE]merge with mail-cleaning-fp
...
bzr revid: sgo@tinyerp.com-20120905050803-qwrknvluqtkpwx6g
2012-09-05 10:38:03 +05:30
Thibault Delavallée
fd2a413969
[FIX] [CLEAN] mail_thread: misc cleanup (comments, vars, typo). Fixed subscriber API. It now handles a read_back key in context to return the new value of the field. The purpose is to use it in mail_followers widget, that behaves asynchronously compared to the form_view, and that need updated values after subscribing a user. Updated mail_followers widget, cleaned its code. Updated mail_group with wrappers on message_subscriber_users, because it was setting user_ids as context.
...
bzr revid: tde@openerp.com-20120904133648-plsziijac64lw4de
2012-09-04 15:36:48 +02:00
Thibault Delavallée
6838e9193b
[FIX] mail_message: fixed typo.
...
bzr revid: tde@openerp.com-20120904121802-7lbajrbon7f83vux
2012-09-04 14:18:02 +02:00
Thibault Delavallée
1974375c92
[IMP] hr_evaluation: send remainder email now uses context values to set some default values when sending an email. This is a basic fix of missing feature due to hr_evaluation/wizard/mail_compose_message override. Updated classic form view of mail.compose.message. Not sure it is usefull to keep two form (one classic and one Chatter)... maybe there is something to do here.
...
bzr revid: tde@openerp.com-20120904115416-zuvna57r3oj37hpu
2012-09-04 13:54:16 +02:00
Amit Patel (OpenERP)
7e4225b3af
[MERGE]:lp:~openerp-dev/openobject-addons/trunk-mail-cleaning-fp
...
bzr revid: apa@tinyerp.com-20120831132232-kpwdzwu8yl1ye917
bzr revid: apa@tinyerp.com-20120903045932-u03grkwnd3ywcogv
2012-09-03 10:29:32 +05:30
Thibault Delavallée
bdd972e3c9
[FIX] mail.message: message_read: fixed a call to a dict keyu not necessarily existing. Cleaned a bit the code, as well as the code of the related tests.
...
bzr revid: tde@openerp.com-20120831143707-ezcn17g5u39tcepq
2012-08-31 16:37:07 +02:00
Thibault Delavallée
a58d50225c
[FIX] mail_message: fixed message_read. Issue was coming from 'expandable' messages, that are there for displaying the threads, but should not be processed.
...
bzr revid: tde@openerp.com-20120831131503-gvypj0z1jykjkpk9
2012-08-31 15:15:03 +02:00
Amit Patel (OpenERP)
fd4fea277a
[MERGE]:trunk-mail-cleaning-fp
...
bzr revid: apa@tinyerp.com-20120831124026-g5xf61xc64lphs7d
2012-08-31 18:10:26 +05:30
Thibault Delavallée
86dd3bdc57
[FIX] mail_message: fixed and simplified unread messages query. Added an index on the read column of mail_notification.
...
bzr revid: tde@openerp.com-20120831112353-egmeetrnecp2kflp
2012-08-31 13:23:53 +02:00
Thibault Delavallée
3cc186cd41
[IMP] mail.message: check is now a check_access_rule override, allowing to remove explicit calls. Moved mail.notification inheritance in mail.message directly into mail.notification, because we are in the same module (no need to separate things too much when in the same module).
...
bzr revid: tde@openerp.com-20120831090120-s56984dg6wpbs0li
2012-08-31 11:01:20 +02:00
Sanjay Gohel (Open ERP)
d993e47c00
[IMP]if subtype not selected should not b show in wall
...
bzr revid: sgo@tinyerp.com-20120831084235-0pbgui7w4d62c4ip
2012-08-31 14:12:35 +05:30
Sanjay Gohel (Open ERP)
18d606a794
[MERGE]merge mail-cleaning-fp and change in mail message
...
bzr revid: sgo@tinyerp.com-20120831050230-opnug0owd3o1ucaf
2012-08-31 10:32:30 +05:30
Sanjay Gohel (Open ERP)
88adf5a68e
[IMP]improve code as per changes in mail message
...
bzr revid: sgo@tinyerp.com-20120831045636-5p1oa9lkhglyd6on
2012-08-31 10:26:36 +05:30
Olivier Dony
06e13555d5
[FIX] mail: simplify test and cleanup some code + fix plaintext signature append
...
bzr revid: odo@openerp.com-20120830122112-y2lbgcazy0opvbs8
2012-08-30 14:21:12 +02:00
Sanjay Gohel (Open ERP)
91c022497b
[MERGE]merge with lp:~openerp-dev/openobject-addons/trunk-mail-cleaning-fp and done changes as needed
...
bzr revid: sgo@tinyerp.com-20120830112426-15b9jere67yyoa3q
2012-08-30 16:54:26 +05:30
Olivier Dony
d8c65aa88e
[IMP] mail.notification: simplify model creation + some lint cleanup
...
No need for extra constraints/defaults, in OpenERP
boolean values are `true` and `not true` (false/NULL).
This seems to work well with db indexes too.
bzr revid: odo@openerp.com-20120829164614-9kqrownb7q4vzrjc
2012-08-29 18:46:14 +02:00
Thibault Delavallée
9b6379462b
[REF] mail_mail: cool and clean refactoring of the models.
...
Removed body_html and content_subtype fields. We now entirely
rely on the body field, that holds sanitized HTML.
Added a user_signature field from email_template. mail_mail.send()
is now responsible of adding the signature on emails.
mail_notification.notify() sets the user_signature flag on
emails send for notifciations.
mail_mail.send() is responsible of adding a default subject
on emails send if there is no subject on the mail.message,
and res_id and model are set.
purchase_requisition: removed an override of mail.message
schedule_with_attach.
bzr revid: tde@openerp.com-20120829150002-v8t581oesnw0rhvl
2012-08-29 17:00:02 +02:00
Olivier Dony
b19d73525d
[IMP] mail: implement parent message resolution when parsing incoming message + cleanup lint
...
bzr revid: odo@openerp.com-20120828173901-8y9y16crvii8d2qg
2012-08-28 19:39:01 +02:00
Thibault Delavallée
fe03a7f1ed
[FIX] mail_message: fixed _get_unread, because of an unitialized dict; mail_followers: fixed a wrong parameters order.
...
bzr revid: tde@openerp.com-20120828150244-vcpxj2nroc8esjzk
2012-08-28 17:02:44 +02:00
Thibault Delavallée
a3fbc61638
[FIX] mail_message: fixed a typo.
...
bzr revid: tde@openerp.com-20120828143754-206i4tg4u8ochmpx
2012-08-28 16:37:54 +02:00
Thibault Delavallée
c791b22a8c
[FIX] [TEST] mail_message: added a flattening method, to flatten the result structure of message according to a given number of thread level. Added some tests that go with that feature.
...
bzr revid: tde@openerp.com-20120828142634-gfsjjih4mr1n2lyt
2012-08-28 16:26:34 +02:00
Thibault Delavallée
720ddfd5c8
[FIX] mail_message: fixed messages that could be present several times in the result structure of message_read.
...
bzr revid: tde@openerp.com-20120828131311-1z27oxmgcej9qf4m
2012-08-28 15:13:11 +02:00
Thibault Delavallée
481bdd269f
[IMP] mail.message: added an 'unread' functional searchable field. This field is used to replace the buggy needaction_domain_get on mail.message (having 2 notifications with 1/ correct partner 2/ unread could lead to false needaction, because of verified domain. The domain is now based on the unread field, that computes unread messages for the user. To avoid having too much overhead, it has been implemented directly in sql.
...
bzr revid: tde@openerp.com-20120828095323-3tb01d7vaoa0m9rb
2012-08-28 11:53:23 +02:00
Thibault Delavallée
f4deb95339
[REV] mail_message: reverted changes on message_read, back to its fist version, except limit that is more usable than an hardcoded one. Added some tests that crash, because message_read is really wrong.
...
bzr revid: tde@openerp.com-20120827162237-eljqnvenwy0xv5dc
2012-08-27 18:22:37 +02:00
Thibault Delavallée
4d510a3d31
[REF] mail_thread: message_read: re-added old expandable, to have same behavior as 'beofre in this branch'.
...
bzr revid: tde@openerp.com-20120827150303-ena57f72e3mgwtg2
2012-08-27 17:03:03 +02:00
Thibault Delavallée
dc5b8efdf7
[IMP] mail: moved tree formation in message_read in a dedicated method; added / fixed some tests. Note that tests for message_read will have to be added.
...
bzr revid: tde@openerp.com-20120827144753-csoho4iz34f6zpy1
2012-08-27 16:47:53 +02:00
Thibault Delavallée
9e3184ad33
[CLEAN] mail_message: get_record_name and name_get now use a dedicated function to truncate names. Moved arbitrary '18' into a variable.
...
bzr revid: tde@openerp.com-20120827094228-xl2i88lhqgn0fw04
2012-08-27 11:42:28 +02:00
Olivier Dony
f4c2bd121f
[IMP] mail.compose.message: cascade delete attachments upon vacuum-clean
...
bzr revid: odo@openerp.com-20120824112312-zs5raruc4qdprlnp
2012-08-24 13:23:12 +02:00
Olivier Dony
2c4ed841b9
[FIX] mail: make message_process/parse work, restore attachment_ids m2m on mail.message, various lint cleanup
...
bzr revid: odo@openerp.com-20120823185443-zsnm6g14r6e42y3i
2012-08-23 20:54:43 +02:00
Thibault Delavallée
95a66586d9
[REF] [TEST] mail: cleaned the way followers are added to a message partner_ids (done in notify in mail.message) and the way emails are send (done in notify in mail.followers). Composition wizard override mail_message.notify to avoid having partners and sending emails. Also added tests that helped finding some bugs, that will be cleaned tomorrow.
...
bzr revid: tde@openerp.com-20120823180648-8xpu8qyf7qr6azc2
2012-08-23 20:06:48 +02:00
Fabien Pinckaers
462fc03987
fix
...
bzr revid: fp@tinyerp.com-20120823155747-0ysezcil7hcy1sv0
2012-08-23 17:57:47 +02:00
Thibault Delavallée
4de99bff8d
[IMP] mail.js: Hide in wall now sets the notification as read. Added server code to handle the client-side link. Also fixed composer, when replying to an email. Began to propagate the use of context for some values instead of everything in options, in js code.
...
bzr revid: tde@openerp.com-20120822172346-zih62h6wgrev22cd
2012-08-22 19:23:46 +02:00
Fabien Pinckaers
c8851c2967
[IMP] fixed size
...
bzr revid: fp@tinyerp.com-20120822163824-t3lj4rjt2mvnp74v
2012-08-22 18:38:24 +02:00
Fabien Pinckaers
4fdb70d12a
fix
...
bzr revid: fp@tinyerp.com-20120822133723-k5r76cty7dej5kjh
2012-08-22 15:37:23 +02:00
Fabien Pinckaers
2f9f57cc46
[IMP] removing some FP Note
...
bzr revid: fp@tinyerp.com-20120822083608-2q98p1758erm8f7t
2012-08-22 10:36:08 +02:00
Thibault Delavallée
24651a903b
[IMP] mail.compose.message: added body_text filed, for plain-text; updated composer accordlingly, removed some dead code/css classes.
...
bzr revid: tde@openerp.com-20120821144930-ucgmx8rwasamhpgp
2012-08-21 16:49:30 +02:00
Thibault Delavallée
169c8055ba
[REF] mail.compose.message: removed extended mode, because not really usefull. Removed reference to that mode in addons (crm lead, crm claim, crm helpdesk, hr evaluation, hr recruitement, project issue). Completely removed the wizard directory in hr_evaluation: mail_compose_message will become a button (TODO), and other files were not called anymore in init/openerp files.
...
bzr revid: tde@openerp.com-20120821142747-q9drv71749opusr1
2012-08-21 16:27:47 +02:00
Thibault Delavallée
00eed0590e
[CLEAN] mail.js: continuing cleaning. Removed commented code, now not necessary.
...
bzr revid: tde@openerp.com-20120821121030-7qbr54wra11oeen2
2012-08-21 14:10:30 +02:00
Thibault Delavallée
5872ed6bd3
[WIP] [CLEAN] mail.js: continuing the cleaning and refactoring. Wall and recordthread seems to basically work (not the 'fetch more' feature). Cleaned function name, duplicate code, ...
...
bzr revid: tde@openerp.com-20120821104345-1ithukovq0a1tv76
2012-08-21 12:43:45 +02:00
Fabien Pinckaers
11ab424912
[IMP]
...
bzr revid: fp@tinyerp.com-20120820191058-kpjymskvxdasoq6c
2012-08-20 21:10:58 +02:00
Thibault Delavallée
9ea504a53a
[WIP] mail.js: removed dead code about generic chatter functions (regular expressions, internal links, ...).
...
bzr revid: tde@openerp.com-20120820161547-saqw5ay01mlyuq7l
2012-08-20 18:15:47 +02:00
Fabien Pinckaers
7a2e5962ab
fix
...
bzr revid: fp@tinyerp.com-20120820113210-4lxap11yk9xxkv9d
2012-08-20 13:32:10 +02:00
Fabien Pinckaers
b7c078b651
[IMP] some fixes
...
bzr revid: fp@tinyerp.com-20120820113150-bgcsylj7k64s26iq
2012-08-20 13:31:50 +02:00
Fabien Pinckaers
1d4dbc3440
[IMP] message_read
...
bzr revid: fp@tinyerp.com-20120820105749-y5fqaztvj5put395
2012-08-20 12:57:49 +02:00
Fabien Pinckaers
7fc19eba99
[IMP] removed ancestror, merged with thread level
...
bzr revid: fp@tinyerp.com-20120820104500-8m246hwoexejjobt
2012-08-20 12:45:00 +02:00