Commit Graph

474 Commits

Author SHA1 Message Date
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
Fabien Pinckaers 3169475b3e [IMP] message_read on mail.message
bzr revid: fp@tinyerp.com-20120820101434-429mgbhbuk1wjqa2
2012-08-20 12:14:34 +02:00
Fabien Pinckaers 7a44634a38 [IMP] message_read with ancestrors and threads and expandable domains
bzr revid: fp@tinyerp.com-20120820093922-b3aokqftfcptwmpp
2012-08-20 11:39:22 +02:00
Fabien Pinckaers f73372e7a2 [IMP] better implementation of message read, no ancestror yet
bzr revid: fp@tinyerp.com-20120820090636-gyyp3n47sjs0fbhc
2012-08-20 11:06:36 +02:00
Fabien Pinckaers a2961cbdc3 mail_refactor
bzr revid: fp@tinyerp.com-20120817130126-ldiw28gs13rvf2ka
2012-08-17 15:01:26 +02:00
Fabien Pinckaers 043dc83d20 [IMP] mails
bzr revid: fp@tinyerp.com-20120817125004-wcchhac2cvxuf93i
2012-08-17 14:50:04 +02:00
Fabien Pinckaers 06f60b3517 [FIX] body_text --> body, not ure it's good enough
bzr revid: fp@tinyerp.com-20120817120606-t97l9x2dguuv7kmp
2012-08-17 14:06:06 +02:00
Fabien Pinckaers 63c0cbfc17 [IMP] mail installs
bzr revid: fp@tinyerp.com-20120817112418-037118wnayik229c
2012-08-17 13:24:18 +02:00
Fabien Pinckaers 6ac583c0f7 [IMP] mail cleaning
bzr revid: fp@tinyerp.com-20120817111936-2d33nlqlbvkjb374
2012-08-17 13:19:36 +02:00
Fabien Pinckaers 960e4ba541 [IMP] email cleaning
bzr revid: fp@tinyerp.com-20120816164311-o7r05mewrvjoldsg
2012-08-16 18:43:11 +02:00
Fabien Pinckaers 282f2535bc [IMP] mail cleaning
bzr revid: fp@tinyerp.com-20120816154823-84cnif2cw99vn0qu
2012-08-16 17:48:23 +02:00
Foram Katharotiya (OpenERP) a929752e46 [IMP]remove selectin subtype field & change name of obj
bzr revid: fka@tinyerp.com-20120816110306-q0mrqa2tp8128nmv
2012-08-16 16:33:06 +05:30
Fabien Pinckaers 73827c5525 [IMP] mail cleaning
bzr revid: fp@tinyerp.com-20120816101848-0l3wyu98zjmtkfks
2012-08-16 12:18:48 +02:00
Foram Katharotiya (OpenERP) 4f696f004e [MERGE/IMP] merge with parent branch & improve message_create method in mail_thread
bzr revid: fka@tinyerp.com-20120816100908-q9mqmz49h6og0m6f
2012-08-16 15:39:08 +05:30
Fabien Pinckaers c7c1cb1037 [IMP] renaming message_state to message_unread
bzr revid: fp@tinyerp.com-20120816092616-jnoj0d18rw1ifqth
2012-08-16 11:26:16 +02:00
Atul Patel (OpenERP) 22a810507c [MERGE]: Merged with lp:openobject-addons
bzr revid: atp@tinyerp.com-20120816052021-igdj7knaimwg9x7z
2012-08-16 10:50:21 +05:30
Fabien Pinckaers 883d07d87c [IMP] access rights on messages
bzr revid: fp@openerp.com-20120815200126-22kzvupbhy6bt3cg
2012-08-15 22:01:26 +02:00
Fabien Pinckaers e9fb0161f5 [IMP] wip
bzr revid: fp@openerp.com-20120815193406-7dw3zwbz0sg1cjwa
2012-08-15 21:34:06 +02:00
Fabien Pinckaers d820e866ee [MERGE] trunk
bzr revid: fp@openerp.com-20120815185713-82zylb0yqqgs008y
2012-08-15 20:57:13 +02:00
Fabien Pinckaers 677024e099 [IMP] refactoring email
bzr revid: fp@openerp.com-20120815184403-dtpep7ypwbc6hm5w
2012-08-15 20:44:03 +02:00
Fabien Pinckaers af93ab5290 [IMP] factorisation of objects
bzr revid: fp@openerp.com-20120815170822-udsmc9geqmm6jae8
2012-08-15 19:08:22 +02:00
Fabien Pinckaers eb0669850d [IMP] removed needaction_pending, some cleaning in messages mail
bzr revid: fp@openerp.com-20120815133643-loyzmyp6azs5lr47
2012-08-15 15:36:43 +02:00
Thibault Delavallée aac03b547d [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120814152634-ix63oxwcyrfkku4t
2012-08-14 17:26:34 +02:00
niv-openerp 1ea43c0a23 Changed necessary fields
bzr revid: nicolas.vanhoren@openerp.com-20120813160654-kdebwwds8eysxtar
2012-08-13 18:06:54 +02:00
Foram Katharotiya (OpenERP) a6850805df [IMP] create mail subtype module
bzr revid: fka@tinyerp.com-20120813115903-wm6n9arze1u0900k
2012-08-13 17:29:03 +05:30
Atul Patel (OpenERP) 0b99488c35 [FIX]: Fix doc string in vote_toggle method
bzr revid: atp@tinyerp.com-20120813113351-cl09uvu4pqgvmbb4
2012-08-13 17:03:51 +05:30
Atul Patel (OpenERP) ea65cbb1e3 [FIX]: Remove get_vote_summary from mail message and search message id and user id from client side
bzr revid: atp@tinyerp.com-20120813112801-9f075ct8y73ide6m
2012-08-13 16:58:01 +05:30
Thibault Delavallée 620b7e9b11 [IMP] Addons: user_email -> email.
bzr revid: tde@openerp.com-20120810144339-30ro9omgfxtjtjyz
2012-08-10 16:43:39 +02:00
Atul Patel (OpenERP) c92422b2ac [ADD]: Add vote system in openchatter
bzr revid: atp@tinyerp.com-20120809095341-xn70i8beof20b07h
2012-08-09 15:23:41 +05:30
Randhir Mayatra (OpenERP) 24264e759d [IMP] make changes into thread file
bzr revid: rma@tinyerp.com-20120806104015-et9znlwd5lrqggfn
2012-08-06 16:10:15 +05:30
Foram Katharotiya (OpenERP) c494b78f77 [ADD] Add many2one subtype_id field in mail.message
bzr revid: fka@tinyerp.com-20120730093550-h9xnithn5h3eq5nk
2012-07-30 15:05:50 +05:30
Thibault Delavallée f6a4e4875d [IMP] mail.message: added type in parameters. Default is email.
bzr revid: tde@openerp.com-20120720125729-4xq31w4o0qey6erl
2012-07-20 14:57:29 +02:00
Thibault Delavallée 150b0fccd1 [REM] mail.message: schedule with attach: removed type=email, because this is the default value.
bzr revid: tde@openerp.com-20120720101756-slv9kd6r5a3d9qrw
2012-07-20 12:17:56 +02:00
Thibault Delavallée a5648e75d8 [IMP] mail.mesage: scheduler: try to send only outgoing emails.
bzr revid: tde@openerp.com-20120720095719-0qmigezuv7r6gr3d
2012-07-20 11:57:19 +02:00
Thibault Delavallée bb64a121e7 [CLEAN] mail.message: cleaned comments and formatting, added parent_id and child_ids to mail.message model; mail.message.common only have a parent_id field now.
bzr revid: tde@openerp.com-20120720092545-gouxtlg9b6frehm1
2012-07-20 11:25:45 +02:00
Thibault Delavallée 642fc05be5 [CLEAN] mail.message: cleaned comments before merge. Also made an auto update of email_to field, based on partner_ids.
bzr revid: tde@openerp.com-20120719163809-3c6cex32rg0qo8y1
2012-07-19 18:38:09 +02:00
Thibault Delavallée 6b9783629b [IMP] mail: composition form: added partner form email templates; when sending an email, email_to is composed based on partner_ids also.
bzr revid: tde@openerp.com-20120719135745-b9ksd2adtrfdb2bm
2012-07-19 15:57:45 +02:00
Thibault Delavallée 7a1b60fb16 [FIX] mail_message: fixed ids -> id in check.
bzr revid: tde@openerp.com-20120716153901-cckf7krk0x9z4f5m
2012-07-16 17:39:01 +02:00
Thibault Delavallée 5b32dba98f [WIP] mail: composition form: WIP of destionation partner management.
bzr revid: tde@openerp.com-20120712154259-bt4rumkj79xtt7mr
2012-07-12 17:42:59 +02:00
Thibault Delavallée 7972b399ab [CLEAN] mail: cleaned mail_message.
bzr revid: tde@openerp.com-20120706094141-lwhuk2g4jqlb11yt
2012-07-06 11:41:41 +02:00
Thibault Delavallée 289dad87d4 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120703122020-79rl9b03mygz5s0h
2012-07-03 14:20:20 +02:00
Thibault Delavallée 507b43cedf [IMP] mail.message: can now have void subjects. Void subjects are not displayed in chatter/wall; this allows to have a more flexible way to display blog post, while avoiding to display unnecessary data for notifications or quick replies. This imply that a way to manually add a subject when posting a comment is required; this will be done in openchatter part3.
bzr revid: tde@openerp.com-20120629152758-9t23sdvtpdd49yyd
2012-06-29 17:27:58 +02:00
Antony Lesuisse f17b0eea00 [MERGE] Use Email everywhere
bzr revid: al@openerp.com-20120627131528-u97jw0m7cq2825ll
2012-06-27 15:15:28 +02:00
Jigar Amin - OpenERP d9db3c44df [REN] renamed e-mail, E-mail, E-Mail to email, Email
bzr revid: jam@tinyerp.com-20120625134253-sebauihl53zctcu0
2012-06-25 19:12:53 +05:30
Kuldeep Joshi (OpenERP) 3c50eb017a [IMP] set logging.getLogger(__name__)
bzr revid: kjo@tinyerp.com-20120622064854-5f6fss55k7305e8q
2012-06-22 12:18:54 +05:30
Thibault Delavallée ca5e516283 [IMP] mail_message: added name_get method, because subject is not required anymore.
bzr revid: tde@openerp.com-20120619082353-htvona30p7k2ry0j
2012-06-19 10:23:53 +02:00
Thibault Delavallée 438eedc151 [IMP] mail_message_common: subject is not required anymore. Having messages without subject can be useful.
bzr revid: tde@openerp.com-20120618160328-q19rx1em3gnfecjr
2012-06-18 18:03:28 +02:00
Thibault Delavallée f3755ac0a4 [REF] mail.message.common: destination_partners -> destination_partner_ids
bzr revid: tde@openerp.com-20120615124050-hvj0r7bxusgvc1le
2012-06-15 14:40:50 +02:00
Thibault Delavallée 464d3c15ae [ADD] mail.message.common: added a destination_partners field, many2many to partners, to match the new way of sending emails (to partners).
bzr revid: tde@openerp.com-20120615083610-1rrou3m1lcqc4fcf
2012-06-15 10:36:10 +02:00
Thibault Delavallée 6a16fd4a78 [MERGE] Merged with main addons.
bzr revid: tde@openerp.com-20120604080134-t1zg2sv0jpmhbyge
2012-06-04 10:01:34 +02:00
Fabien Pinckaers 5c791531aa [IMP] improved typos
bzr revid: fp@tinyerp.com-20120522161055-6013qr1s4p773hoj
2012-05-22 18:10:55 +02:00
Thibault Delavallée 7a553f429b [MERGE] Merged with main addons.
bzr revid: tde@openerp.com-20120511124643-y1rsa0ouh3e6xq1k
2012-05-11 14:46:43 +02:00
Thibault Delavallée a6fd78b0a0 [REM] mail.message: removed display_text field, that was used only in Communication History.
bzr revid: tde@openerp.com-20120511103742-xld31z7kic72wvib
2012-05-11 12:37:42 +02:00
Thibault Delavallée b7fb55b5be [FIX] mail.message: when calling message_parsing to parse an email into en mail.message, the date is now converted from the email timezone to the server timezone. Also added context in method. Also renamed a fields var to msg_fields, to avoid conflicts with the fields module.
bzr revid: tde@openerp.com-20120510135447-if87oip7uodcn8ul
2012-05-10 15:54:47 +02:00
Thibault Delavallée b16bc96411 [IMP] mail.message: added 'oldname' attribute to the content_subtype field that was subtype
bzr revid: tde@openerp.com-20120509092437-j2hzm31vso93v6up
2012-05-09 11:24:37 +02:00
Thibault Delavallée d001c67f99 [IMP] mail.message: modified default access rights: now accessible, but will be restricted by rights of the related document (as for attachments)
bzr revid: tde@openerp.com-20120508135600-6u231f63f9h9toqf
2012-05-08 15:56:00 +02:00
Saurang Suthar (OpenERP) a2a05cfc19 [IMP]:improved titles State by Status everywhere
bzr revid: ssu@tinyerp.com-20120504115748-2vd1dns7bxptg384
2012-05-04 17:27:48 +05:30
Mayur Maheshwari (OpenERP) 9e59ce8812 [IMP]all: Improve all typos
bzr revid: mma@tinyerp.com-20120424060532-ohrf0sxwq8rpq6ls
2012-04-24 11:35:32 +05:30
Divyesh Makwana (Open ERP) 7c5f34601f [IMP] mail : Improved the typos.
bzr revid: mdi@tinyerp.com-20120423121828-soka46184z20v9zi
2012-04-23 17:48:28 +05:30
Thibault Delavallée 66b67b79b4 [IMP] mail.message: subtype field is now a char, not a selection anymore.
bzr revid: tde@openerp.com-20120420132049-t10va307h52r3u22
2012-04-20 15:20:49 +02:00
Thibault Delavallée 4e5b58ce27 [DOC] Small mail doc update.
bzr revid: tde@openerp.com-20120420095301-v2k16q9nvmq2myqp
2012-04-20 11:53:01 +02:00
Thibault Delavallée 318ef517ab [REF] mail.message.common model: renamed subtype to content_subtype. Purpose: make a distinction between content and message model. Type and subtype will be used to distinguish messages, content_subtype to distinguish the content itself.
bzr revid: tde@openerp.com-20120420093645-tt78zzrmq2nxomvb
2012-04-20 11:36:45 +02:00
Thibault Delavallée caba5db34b [ADD] mail.message: added a message_subtype field, that will contain more precise data about the type of content. Example: create, cancel, ... Purpose: being able to filter (hide) a given content type.
bzr revid: tde@openerp.com-20120419162050-6uq495s94i4etnbp
2012-04-19 18:20:50 +02:00
Thibault Delavallée 67613957e4 [MERGE] Merged OpenChatter part 1/2. OpenChatter, part 1/2.
This revision adds a social messaging system inside OpenERP, that will be used by addons to display notifications (such as status changes), user comments, and emails. All message types are managed in a unified system. Social aspects are also enforced, by an easy invite system based on share, and a subscription mechanism allowing to follow messages post on records users want to follow. res.logs are removed from OpenERP and replaced by OpenChatter.

This revision adds theaddons-side of OpenChatter part 1/22. Main addons are updated in order to use the new feature: notifications on state/stage change, management of subscriptions. It also includes addons-side update related to the need_action mechanism, by defining the states in which user_ids are sent to the need_action engine. Server- and web-sides of need_action have already been merged in previous revisions.

bzr revid: tde@openerp.com-20120406123732-6fl2uzxzqr864jc4
2012-04-06 14:37:32 +02:00
Thibault Delavallée 01a03e10ca [IMP] mail.message: added a child_ids relationship on message, linked to parent_id. It will allow to know the number of messages present in a thread, for a better user experience about more buttons.
bzr revid: tde@openerp.com-20120404112128-jzc9cogti4ip2glu
2012-04-04 13:21:28 +02:00
Thibault Delavallée 0f0213892e [WIP] mail.thread: issues about email. Will continue tomorrow.
bzr revid: tde@openerp.com-20120403173449-gm209j5n1pt7cojr
2012-04-03 19:34:49 +02:00
Thibault Delavallée d4ea29ddfb [MERGE] Merged with framework branch
bzr revid: tde@openerp.com-20120402163226-6iiqkk19njuwprhn
2012-04-02 18:32:26 +02:00
Thibault Delavallée 506fd1459b [IMP] Type back to mail.message instead of mail.common
bzr revid: tde@openerp.com-20120402162425-207jpzsz28nhrhou
2012-04-02 18:24:25 +02:00
Thibault Delavallée 5d3d9f4468 [CLEAN] mail.thread: cleaned mail.message, mail.thread
bzr revid: tde@openerp.com-20120402115002-q8u8vlu49jjs8e5g
2012-04-02 13:50:02 +02:00
Bhumi Thakkar (Open ERP) b655344971 [MERGE] merge trunk-social-tde branch.
bzr revid: bth@tinyerp.com-20120402110518-q9vjn5m7jujsejhx
2012-04-02 16:35:18 +05:30
Thibault Delavallée 6f3bec4d7f [MERGE] Merged with main addons, notably now holding the user_img branch
bzr revid: tde@openerp.com-20120330091231-tuh26f0z67rzm2u2
2012-03-30 11:12:31 +02:00
Thibault Delavallée f38c7212ca [MERGE] Merged with framework social branch
bzr revid: tde@openerp.com-20120329163949-2bkxm15nvjw4hv2u
2012-03-29 18:39:49 +02:00
Olivier Dony 11f4469e85 [MERGE] mail: make post-processing of sent messages extensible
bzr revid: odo@openerp.com-20120329104149-9xjt9gr2sj1fb9m0
2012-03-29 12:41:49 +02:00
Thibault Delavallée a26730f087 [IMP] mail_message: schedule_with_attach: added 'email' type
bzr revid: tde@openerp.com-20120328090253-r9134x6hyh3y6vp1
2012-03-28 11:02:53 +02:00
Purnendu Singh (OpenERP) f268241d7a [IMP] mail: split out the send method and define a new method for post-processing of sent messages
bzr revid: psi@tinyerp.com-20120327115800-mjcwrzz31sjytld0
2012-03-27 17:28:00 +05:30
Thibault Delavallée 8405345bcf [IMP] mail.message: added a body fied, that is a function field matching body_html for html subtyped messages, or body_text for other subtyped messages. Added a get/search function for this field. Modified mail.message wall search view accordingly.
bzr revid: tde@openerp.com-20120327081011-hn04o00tuqunnvcv
2012-03-27 10:10:11 +02:00
Thibault Delavallée dec8de9aed [IMP] Added a function field to the message, holdind the record name.
bzr revid: tde@openerp.com-20120327073053-hiabrfs80duu8j6i
2012-03-27 09:30:53 +02:00
Purnendu Singh (OpenERP) 2bdc0db607 [MERGE] merge with main addons
bzr revid: psi@tinyerp.com-20120322123300-timjpkj3ep7ev1ki
2012-03-22 18:03:00 +05:30
Thibault Delavallée 287be191fb [IMP] mail.message, mail.thread: cleaned code
bzr revid: tde@openerp.com-20120322120836-0fuffo5g2jjft3p2
2012-03-22 13:08:36 +01:00
Thibault Delavallée 56060f1a89 [MERGE] Merged with main addons
bzr revid: tde@openerp.com-20120321084749-79ek3luee0745me4
2012-03-21 09:47:49 +01:00
Olivier Dony 5615911303 [MERGE] Latest bugfixes from 6.1
bzr revid: odo@openerp.com-20120320182912-g2ylze2qsqv93y4i
2012-03-20 19:29:12 +01:00
Thibault Delavallée a97652608d [MERGE] Merged with main social branch
bzr revid: bth@tinyerp.com-20120319054839-fwev70kh9zdkodgt
bzr revid: tde@openerp.com-20120320104958-znzxqduxovp5wvpl
2012-03-20 11:49:58 +01:00
Thibault Delavallée 7262f0e325 [MERGE] Merged with main addons
bzr revid: tde@openerp.com-20120320083001-b9f4akuhnfv146hf
2012-03-20 09:30:01 +01:00
Raphael Collet b2b85029ee [FIX] backport of branch trunk-bug-937194-nco (mail: remove character 
 from message)
bzr revid: rco@openerp.com-20120320082059-w3zm7pyicbb79inh
2012-03-20 09:20:59 +01:00
Raphael Collet efa32c3ed1 [MERGE] lp:937194 (mail: remove character 
 from message)
bzr revid: rco@openerp.com-20120320081523-nz35q1lwfwmzbo3s
2012-03-20 09:15:23 +01:00
Olivier Dony ce2f1173a9 [FIX] mail.message: allow reading msg even if author belongs to another company
lp bug: https://launchpad.net/bugs/944813 fixed

bzr revid: odo@openerp.com-20120319145331-thrtlzardl8rikkf
2012-03-19 15:53:31 +01:00
Olivier Dony c5f01ad903 [FIX] mail.message: when auto-deleting a message, only delete attachments it owns
There's a peculiar way to manage attachments on
mail messages, as there is an explicit many2many
on top of regular attachments like for any
record, so it is possible to link a mail
to attachments that are owned by other records.
Such attachments must not be deleted along with
the message when the auto-delete flag is set.

bzr revid: odo@openerp.com-20120316133026-4wbrwx64nqkeyaou
2012-03-16 14:30:26 +01:00
Purnendu Singh (OpenERP) ce5483e4c4 [IMP] mail: add a feature to call _hook_message_sent method of the related module with will trigger the workflow and set state accordingly
bzr revid: psi@tinyerp.com-20120316065927-1m4ns7gpe5bwr4pk
2012-03-16 12:29:27 +05:30
Bhumi Thakkar (Open ERP) aff4a76a6e [MERGE] merge trunk-social-tde branch.
bzr revid: bth@tinyerp.com-20120314052341-0dgmhlq8pc6s4tnl
2012-03-14 10:53:41 +05:30
Thibault Delavallée 47214c9d2d [IMP] mail.message: cleaned code
bzr revid: tde@openerp.com-20120313135949-l4wmzcg1kpqidzgh
2012-03-13 14:59:49 +01:00
Bhumi Thakkar (Open ERP) 3bea195441 [MERGE] Merge trunk-social-tde branch.
bzr revid: bth@tinyerp.com-20120309131332-av9mno2sl4c7rdkx
bzr revid: bth@tinyerp.com-20120312052941-c5b7ygmptnin0mlt
2012-03-12 10:59:41 +05:30
Bhumi Thakkar (Open ERP) 5d2e6a8cf4 [MERGE] merge trunk-social-tde branch.
bzr revid: bth@tinyerp.com-20120309095643-05yd9k09c3hzrnyf
2012-03-09 15:26:43 +05:30
Thibault Delavallée fd27e7f87e [MERGE] Merged with branch holding the threaded version of OpenChatter. Main modifications: mail.message now have a parent_id field; message searching have a feature to retrieve parents and ancestors until some root ids; xml/js adapted to a threaded display; updated design
bzr revid: tde@openerp.com-20120309094916-n23t6v4v7o3d25xw
2012-03-09 10:49:16 +01:00
Olivier Dony 86a7978d2d [FIX] mail*: properly handle b64-encoding for attachments
When reading the datas property of an attachment,
a base64-encoded stream is expected.
The mail.message.schedule_with_attach() method OTOH
expects a binary file for attachments, so it should
be decoded if extracted from a binary field.

bzr revid: odo@openerp.com-20120308155650-blnwf7x2bkmsfue2
2012-03-08 16:56:50 +01:00
Thibault Delavallée 89eec3624c [MERGE] Merged with branch modifying the need_action_user_id mechanism. need_action is now a server-side mechanism. Addons only have to inherit from res.needaction to have the possibility to use this mechanism. Overwriting the get_action_user_id method is the way to define when a user_id is requested to perform an action.
bzr revid: tde@openerp.com-20120307092119-o56qgyd1h22gktvw
2012-03-07 10:21:19 +01:00
Thibault Delavallée 5b2b9fb1ab [ADD] Added a thread model in display. Seems working but needs refactoring in the next few days.
bzr revid: tde@openerp.com-20120302170749-gaxx90sxy7bi97b3
2012-03-02 18:07:49 +01:00
Thibault Delavallée 299c39f2ce [MERGE] Merged with main addons
bzr revid: tde@openerp.com-20120229105032-x5pvrejzq7okt2j2
2012-02-29 11:50:32 +01:00
Olivier Dony 318d99d029 [MERGE] Latest bugfixes from 6.1
bzr revid: odo@openerp.com-20120229094502-sp0xrg4yf5uvq5k9
2012-02-29 10:45:02 +01:00
Thibault Delavallée c2d045df3d [IMP] hr_holidays: updated to new need_action_user_id
bzr revid: tde@openerp.com-20120228171450-tweynl073wf34z9m
2012-02-28 18:14:50 +01:00
Bhumi Thakkar (Open ERP) 20fa96c724 [MERGE] merge trunk-social-tde branch.
bzr revid: bth@tinyerp.com-20120224103317-7m4sm3x364swds4h
2012-02-24 16:03:17 +05:30
Thibault Delavallée 31cf2a35a7 [MERGE] Merged with main addons
bzr revid: tde@openerp.com-20120224080318-5xo9nan72e3891ke
2012-02-24 09:03:18 +01:00
Thibault Delavallée 90b9ad4556 [IMP] Added the possibility to override the fetch_messages of a Thread by giving it the messages to display (used in the wall that fetches pushed messages). Also moved get_pushed_messages from mail.message to mail.thread to have a consistent API.
bzr revid: tde@openerp.com-20120223174936-3qnwj3t7z3ss0tr3
2012-02-23 18:49:36 +01:00
Bhumi Thakkar (Open ERP) 99a3eeed4c [IMP] replace *args with context=None in crm.py and crm_lead.py,craeate methods in crm.py and crm_lead.py file _case_open_notification,_case_close_notification,_case_cancel_notification,_case_pending_notification,_case_escalate_notification,remove message_ids field from crm_lead.py file and crm_lead_view.xml file,add type : 'email' in 'schedule_with_attach' method in mail_message.py file
bzr revid: bth@tinyerp.com-20120223104641-ej8bbbzgwt4v670h
2012-02-23 16:16:41 +05:30
Nimesh (Open ERP) e6131b194f [FIX] mail: remove the unused charector generated by the html2plaintext function from the message.
bzr revid: nco@tinyerp.com-20120223054022-9l9hxv3ssiajdf9p
2012-02-23 11:10:22 +05:30
Raphael Collet f266fa4c53 [MERGE] lp:931523 (fix error message when pushing on Documents)
bzr revid: rco@openerp.com-20120222153220-0ezmr1as14egzh18
2012-02-22 16:32:20 +01:00
Thibault Delavallée d9a3b4b290 [REF] Cleaned mail.message get_pushed_messages method
bzr revid: tde@openerp.com-20120222133501-it9li0lh8fwvuk4e
2012-02-22 14:35:01 +01:00
Thibault Delavallée b0a1a7e24a [FIX] added user_id when posting a tweet from the wall
bzr revid: tde@openerp.com-20120222101216-9xpo3c0gj1ickigl
2012-02-22 11:12:16 +01:00
Stephane Wirtel 9041add81d [FIX] mail: Use a default value if the signature and the subject are empty
bzr revid: stw@openerp.com-20120222095342-nifzjg0ilgd3ln0p
2012-02-22 10:53:42 +01:00
Thibault Delavallée babd47b963 [IMP] Notification push moved from mail.message to mail.thread to use message_get_subscribers method. Also added a temporary debug log on message.create method, to help tracking messages not using mail.thread.
bzr revid: tde@openerp.com-20120222090923-1h6wx3bkwr5ngt4d
2012-02-22 10:09:23 +01:00
Nimesh (Open ERP) d081af362c [FIX] mail: remove the unused charector from the message body using filter.
bzr revid: nco@tinyerp.com-20120221131238-czel3dz0b51ac2dz
2012-02-21 18:42:38 +05:30
Nimesh (Open ERP) 06e5122a07 [FIX] : for outlook msg_body is blank so put condion for that outherwise it does not gives error while converting to html to plaintext
bzr revid: nco@tinyerp.com-20120217135824-3ewo9lt8f48mwpkn
2012-02-17 19:28:24 +05:30
Thibault Delavallée 12514823e6 [FIX] Cleaned create method for mail_message; added protection against unknown keys in vals parameter
bzr revid: tde@openerp.com-20120216170446-h4u8t3znp7p4lerb
2012-02-16 18:04:46 +01:00
Thibault Delavallée 64164155d2 [FIX] mail_message: fixed notification creation, propagating a subscription model modification (from int to many2one); fixed unprotected accesses to 'need_action_user_id' key in vals dictionnary
bzr revid: tde@openerp.com-20120216164837-jscxxu52sybvy7db
2012-02-16 17:48:37 +01:00
Thibault Delavallée 1d09919c18 [FIX] Fixed bug with message dict not necessarily containing a 'type' entry
bzr revid: tde@openerp.com-20120210095348-z8m7gqpse6hw9byr
2012-02-10 10:53:48 +01:00
Thibault Delavallée 9efc4714f2 [IMP] Wall: added parameters passing (filtering, message number to display, ..). Added My Wall (all feeds versus my feeds).
bzr revid: tde@openerp.com-20120209100447-p8csuqq85jsexrdn
2012-02-09 11:04:47 +01:00
Thibault Delavallée 5561797ce8 [IMP] Basic Wall system displaying all pushes messages.
bzr revid: tde@openerp.com-20120208170808-8bac1bnj53z4650u
2012-02-08 18:08:08 +01:00
Thibault Delavallée cff98a3aeb [IMP] Improved ThreadView widget display; cleaned ThreadView widget js code; added basic access rules; added message_mark_done method to clean a mail.thread of its need_action_user_id; added auto-push of notifications if user requested to perform an action is not following the object; added first draft of messaging mechanism in hr_holidays
bzr revid: tde@openerp.com-20120208152521-68i4nekjj8mnuyc8
2012-02-08 16:25:21 +01:00
Thibault Delavallée 74255533e1 [IMP] Moved code for views in correct files; some improvements in mail.thread; work on threadview widget
bzr revid: tde@openerp.com-20120207170746-m3ptbzotrafa9wvq
2012-02-07 18:07:46 +01:00