Commit Graph

286 Commits

Author SHA1 Message Date
Thibault Delavallée 7392ef4283 [CLEAN] mail_thread: no need th have its hack about returning the new value after subscribing or unsubscribing.
bzr revid: tde@openerp.com-20120912133711-tlt4pqm1cejjq9pv
2012-09-12 15:37:11 +02:00
Olivier Dony 1275d524f2 [IMP] mail: fix and test parsing of plaintext messages
bzr revid: odo@openerp.com-20120905160145-2e11txqm5jffij6v
2012-09-05 18:01:45 +02:00
Thibault Delavallée b5b813162d [CLEAN] mail: cleaned mail_thread.py.
bzr revid: tde@openerp.com-20120905155121-1w3h43t10qsigusn
2012-09-05 17:51:21 +02:00
Olivier Dony c0ac0611d1 [IMP] misc bits - lint
bzr revid: odo@openerp.com-20120904155023-hchxi9jqemvqulpy
2012-09-04 17:50:23 +02:00
Thibault Delavallée bacbb8e2f4 [REVIEW] base_stage: removed now dead message_thread_followers method. mail_thread: set message_capable_models back, because it is used in the plugin addon, adn therefore in various plugin_XXX addons. Maybe a refactoring of those plugins could be done, but it is beyond the scope of this refactoring.
bzr revid: tde@openerp.com-20120904145011-tlwgcu32uv8cwe6g
2012-09-04 16:50:11 +02:00
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 674ea05830 [IMP] mail_thread: cleaned comments and some var name in the modified many2many field. Also made mail_thread an AbstractModel.
bzr revid: tde@openerp.com-20120904121838-rpaesid3stxm8gus
2012-09-04 14:18:38 +02:00
Thibault Delavallée 0f3101cec5 [FIX] mail.compose.message: fixed send_mail about getting mass_mail values from template; fixed generated body that was adding a signature in reply mode; added the test that trigerred that bug.
bzr revid: tde@openerp.com-20120831171507-1prt4h46zsj77m23
2012-08-31 19:15:07 +02:00
Olivier Dony 24fab3ca7d [IMP] mail: refactor various places where we append content to HTML
bzr revid: odo@openerp.com-20120831155103-t13p33p7232g0128
2012-08-31 17:51:03 +02:00
Thibault Delavallée 660553d404 [CLEAN] mail_thread: misc cleanup (comments, some var names).
bzr revid: tde@openerp.com-20120831080103-gdtitgzxfpddyws3
2012-08-31 10:01:03 +02:00
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
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 d7a6f580d8 [CLEAN] mail_thread: removed an unused method; misc clean.
bzr revid: tde@openerp.com-20120828125522-4pt7j97qfuj8c0bw
2012-08-28 14:55:22 +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
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
Fabien Pinckaers 2c29bd58f0 [IMP] blue color on unread messages
bzr revid: fp@tinyerp.com-20120823160416-23a11k1ivu2md34v
2012-08-23 18:04:16 +02:00
Fabien Pinckaers 462fc03987 fix
bzr revid: fp@tinyerp.com-20120823155747-0ysezcil7hcy1sv0
2012-08-23 17:57:47 +02:00
Thibault Delavallée 61a45e9268 [IMP] mail_thread: message_follower_ids: simplified message_subscribe code, now that we use the many2many modified field. Subscrubing is now a simple write on the field.
bzr revid: tde@openerp.com-20120823122426-o08nh8gxx93kizjl
2012-08-23 14:24:26 +02:00
Thibault Delavallée ef860e197e [REV] mail_thread: many2many_reference is back for message_follower_ids. Tests will come to test this field effectively works as required.
bzr revid: tde@openerp.com-20120823095920-n7k7aarl14fvw1j9
2012-08-23 11:59:20 +02:00
Olivier Dony 7dd0bfa766 [FIX] mail.thread make body an optional keywarg, so it can be passed via **args - should always be explicitly specified
bzr revid: odo@openerp.com-20120822191630-55anhcuu0l1j0ioq
2012-08-22 21:16:30 +02:00
Fabien Pinckaers 9c3e455799 [FIX]
bzr revid: fp@tinyerp.com-20120822161315-n1uwcxevdo18elkb
2012-08-22 18:13:15 +02:00
Fabien Pinckaers f6b6fb4deb [FIX] needaction ok for crm
bzr revid: fp@tinyerp.com-20120822155954-8ix4op6hj5e5hzi5
2012-08-22 17:59:54 +02:00
Olivier Dony 786419565a [FIX] mail: make basic mail tests pass again, remove useless/dead test code
bzr revid: odo@openerp.com-20120822133028-hms3xfhibhn1j38l
2012-08-22 15:30:28 +02:00
Olivier Dony a001d89243 [FIX] mail: more typos
bzr revid: odo@openerp.com-20120822124943-2ixd2vbbug38tfb2
2012-08-22 14:49:43 +02:00
Olivier Dony 8b78127210 [FIX] mail: typo
bzr revid: odo@openerp.com-20120822123858-e3alagahniwbdpgz
2012-08-22 14:38:58 +02:00
Olivier Dony 406e58399f [FIX] mail: unify message_post calls, fix typos, various lint cleanup
bzr revid: odo@openerp.com-20120822113439-aoy7v4njs6o34tu5
2012-08-22 13:34:39 +02:00
Thibault Delavallée 49596ebe91 [IMP] mail_thread: message_is_follower field is now calculated with other functional fields (message_summary and message_read). Cleaned message_subscribe and message_unsubscribe. Added deletion of followers when unlinking a record. Propagated change in mail_group view.
bzr revid: tde@openerp.com-20120822110313-is3p1h4s2e8c4hbm
2012-08-22 13:03:13 +02:00
Thibault Delavallée 26cb676602 [FIX] mail_thread: find_partners: fixed message_find_partners, message_txt did not always have all headers filled; removed some commented code that can be deleted; re-added computation of email date; added missing imports.
bzr revid: tde@openerp.com-20120822083813-tt2sjx54iu6sbskt
2012-08-22 10:38:13 +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
Olivier Dony caec481a35 [FIX] mail: typos during refactoring
bzr revid: odo@openerp.com-20120822010755-xjc53162ue4kxm2e
2012-08-22 03:07:55 +02:00
Olivier Dony 5008e9cc84 [FIX] mail: fix parse_message calls for new signature - cr,uid needed
bzr revid: odo@openerp.com-20120821211528-yyxyq1bqti5g3s5v
2012-08-21 23:15:28 +02:00
Thibault Delavallée a7531c4814 [FIX] mail_thread: pass cr arg to parse_message, because it is necessary for sub-calls.
bzr revid: tde@openerp.com-20120821155257-0paa85fs6gla5slr
2012-08-21 17:52:57 +02:00
Thibault Delavallée 98f41b176b [FIX] mail_thread: parse_message was on mail.message, but now on mail.thread.
bzr revid: tde@openerp.com-20120821153542-87i32quupsmr1t2y
2012-08-21 17:35:42 +02:00
Thibault Delavallée 3ae87708d4 [CLEAN] mail_thread: removed print statements.
bzr revid: tde@openerp.com-20120821152009-y50ju4q9u1catn2f
2012-08-21 17:20:09 +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 9fd90c604e test
bzr revid: fp@tinyerp.com-20120820140901-pqvj3fj8zruit3f4
2012-08-20 16:09:01 +02:00
Fabien Pinckaers de096a967d fix
bzr revid: fp@tinyerp.com-20120820130232-qrw1zk5i2fhe22qk
2012-08-20 15:02:32 +02:00
Fabien Pinckaers d6395938ce [FIX] small fixes
bzr revid: fp@tinyerp.com-20120820125525-daa8ghuqse6csgbg
2012-08-20 14:55:25 +02:00
Fabien Pinckaers 2be5f9424a fix
bzr revid: fp@tinyerp.com-20120820124205-qomccfiwd6zjtc1w
2012-08-20 14:42:05 +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 b386ee3c4a [IMP] remove unused code, I still have to rewrite message_read
bzr revid: fp@tinyerp.com-20120820074242-w6n1nmwu315r2bhj
2012-08-20 09:42:42 +02:00
Fabien Pinckaers d862e2daa6 [IMP] removing unused code
bzr revid: fp@tinyerp.com-20120820072603-94bb7eki8ec01gap
2012-08-20 09:26:03 +02:00
Fabien Pinckaers 229096453c [IMP] remove formatting code and unused method
bzr revid: fp@openerp.com-20120819165039-kgs71kkn436753tz
2012-08-19 18:50:39 +02:00
Fabien Pinckaers 1b8d190829 [IMP] merging _get_pushed_messages and message_read, still have to add a domain on message_read based on notifications
bzr revid: fp@openerp.com-20120819162832-ffzlm7zej7qrn11l
2012-08-19 18:28:32 +02:00
Fabien Pinckaers a3f8bc2dc5 [IMP] FIX in MRP demo data + mail stuff
bzr revid: fp@tinyerp.com-20120817133449-y50n3iyh49f6w8j1
2012-08-17 15:34:49 +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 66ece041f0 [IMP] append note
bzr revid: fp@tinyerp.com-20120817102650-1sglq1y2dbb3xqju
2012-08-17 12:26:50 +02:00