Commit Graph
55846 Commits
Author SHA1 Message Date
Thibault Delavallée d19ad1ff4b [TEST] mail: added tests for the composer, includes a first bench of tests for notifications and send emails.
bzr revid: tde@openerp.com-20120824161117-abur02jlgs08my21
2012-08-24 18:11:17 +02:00
Thibault Delavallée d583b98a97 [IMP] mail_followers: moved email creation for emails send for notification into a dedicated method; updated subject and body creation (added default subject, added signature on body).
bzr revid: tde@openerp.com-20120824161038-vhylgsify9f9xder
2012-08-24 18:10:38 +02:00
Thibault Delavallée 6e3ea98e48 [IMP] mail_mail: re-instaured body_alternative, using html2plaintext of tools. Removed some dead imports.
bzr revid: tde@openerp.com-20120824160936-n3fehtgf4f2k0dkn
2012-08-24 18:09:36 +02:00
Thibault Delavallée ab6b3cc266 [IMP] Remove some warnings about: alias_force_id -> alias_force_thread_id; type set in view that is not necessayr anymore.
bzr revid: tde@openerp.com-20120824143112-krho3ahvklxcod29
2012-08-24 16:31:12 +02:00
Thibault Delavallée d91979671f [REF] crm_partner_assign: refactored code a bit, following cleaning of mail, because it inherit from mail.compose.message. Removed send_to field, as the new composer is based on partners and simplify this wizard; removed a lot of code about setting email_from, email_to, ... because this should be managed by the other layers of the mail module. Cleaned the code in a more general way to remove weird things. Updated releveant form view, especially about context on Forward button, and the form view of the wizard that has been much simplified.
bzr revid: tde@openerp.com-20120824142000-0jbgvgdiip5475yp
2012-08-24 16:20:00 +02:00
Thibault Delavallée fb76f9f037 [IMP] [FIX] crm_partner_assign: as it inherits from mail.compose.message, updated the form view to avoid crashe; updated mail.compose.message composition mode, that is now an updatable selection field. crm_partner_assign will habe to be massively cleaned with the new mail module.
bzr revid: tde@openerp.com-20120824122928-dof1y1uxv3lkiwly
2012-08-24 14:29:28 +02:00
Olivier Dony 545d7843e3 [FIX] marketing_campaign: make tests pass again, move partner resolution to mail_compose_message
email_template's job is to generate a mail.mail record, but it
does not care about linking it automatically to a partner
(and certainly not creating new partners) as this must be
usable for mass mailing and for marketing campaign,
and we don't want to pollute the partners database with
possibly thousands of partially fake emails

bzr revid: odo@openerp.com-20120824120102-jycs8x4vkxdmrvge
2012-08-24 14:01:02 +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
Thibault Delavallée 18f6fd8990 [FIX] email_template: fixed inherited view.
bzr revid: tde@openerp.com-20120824103845-7g1jzgtcctry6nod
2012-08-24 12:38:45 +02:00
Thibault Delavallée 70b90a2343 [FIX] mail_followers: when sending the notification email, it could be interesting to have something in the body. Well, receiving void emails ensure that your spam is not a time-consuming one, but I am not sure this was the intended purpose.
bzr revid: tde@openerp.com-20120824100451-82crb3j7i0ki2h9h
2012-08-24 12:04:51 +02:00
Thibault Delavallée 36c3a308e6 [TOCHECK] crm_lead: commented statemetns that make no sense abotu changing partner of emails when converting a lead into an oportunity.
bzr revid: tde@openerp.com-20120824100335-1kso3qphdh8piq32
2012-08-24 12:03:35 +02:00
Thibault Delavallée c5cfb049f8 [FIX] Fixed last commit (forgotten a ','), fixed demo data about non-existing fields.
bzr revid: tde@openerp.com-20120824100205-nm4vjw13qx363cb5
2012-08-24 12:02:05 +02:00
Thibault Delavallée 6a386dc762 [FIX] crm_forward_to_partner: to_email is now tools.email_split.
bzr revid: tde@openerp.com-20120824093130-e24hm16pq14x84zb
2012-08-24 11:31:30 +02:00
Thibault Delavallée 4969c586b4 [FIX] mail_mail: temp fix, commented headers propagation; mail_followers: send emails accordign to email preferences was not correct.
bzr revid: tde@openerp.com-20120824085342-aa9s1ojl2j3v85fk
2012-08-24 10:53:42 +02:00
Olivier Dony cd67c50e29 [MERGE] crm: cherry-pick of mass conversion improvements from 6.1
This corresponds to rev.6762 from 6.1, which includes a lot
of fixes related to mass conversions, and is completely
related to the kind of fixes currently done for crm during
the mail refactoring.
This should not break crm more than it is already in this branch.

bzr revid: odo@openerp.com-20120823200629-1m1eym62l7aabzgl
2012-08-23 22:06:29 +02:00
Olivier Dony a7193cb193 [FIX] crm: fix some missing bits after the big refactoring
bzr revid: odo@openerp.com-20120823193130-4u42mhyih43k32nb
2012-08-23 21:31:30 +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 d808f69390 imp_demo
bzr revid: fp@tinyerp.com-20120823161655-z823jx02ymg4kmky
2012-08-23 18:16:55 +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 d0d14766fc [FIX] mail.js: fixed do_action of Wall.
bzr revid: tde@openerp.com-20120823150229-7vp9hbfb80bo29xf
2012-08-23 17:02:29 +02:00
Fabien Pinckaers 08f22c7411 fix
bzr revid: fp@tinyerp.com-20120823142622-8dsevh9eqarj1nht
2012-08-23 16:26:22 +02:00
Thibault Delavallée c7c93bf42f [CLEAN] mail_group: small cleaning in comments; write before subscribing.
bzr revid: tde@openerp.com-20120823134508-3d1yawov0lv87jx5
2012-08-23 15:45:08 +02:00
Thibault Delavallée f3b43da73b [CLEAN] mail: res_partner: removed dead code. Also fixe da typo in mail tests.
bzr revid: tde@openerp.com-20120823131144-xbryqdesfw5ix8y9
2012-08-23 15:11:44 +02:00
Thibault Delavallée 690bc2ece9 [TEST] mail: added tests for the many2many modified field used for follower_ids. Added tests for the subscriber API.
bzr revid: tde@openerp.com-20120823122537-g0m5jtkq67jhuone
2012-08-23 14:25:37 +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
Olivier Dony 2b14337518 [FIX] email_template: fix invalid _rec_name
bzr revid: odo@openerp.com-20120822184856-ye5ff2wzvte0qgwr
2012-08-22 20:48:56 +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
Thibault Delavallée 4e6e86fab5 [IMP] [CLEAN] [WIP] composer: cleaning of the server-side code. It now relies less on context keys and values; some fields have been added to manage the composition mode, model, res_id and message_id as a classic form. Updated form view, with invisible fields, to have those value accessible and modifiable through onchange or through JS. Updated JS-part of the composer to handle the new composer; less options, less logic client-side ! Still not finished, short in time today (have to check mass_mail, templates).
bzr revid: tde@openerp.com-20120822162151-n9o23ik0v45h7v6j
2012-08-22 18:21:51 +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
Fabien Pinckaers b531d9cff1 [IMP] needaction after mail.thread
bzr revid: fp@tinyerp.com-20120822153145-g7xopqq7oje7y60c
2012-08-22 17:31:45 +02:00
Fabien Pinckaers e30fed20b8 merge_trunk
bzr revid: fp@tinyerp.com-20120822133742-yx81c62bux28wruy
2012-08-22 15:37:42 +02:00
Fabien Pinckaers 4fdb70d12a fix
bzr revid: fp@tinyerp.com-20120822133723-k5r76cty7dej5kjh
2012-08-22 15:37:23 +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
Christophe Simonis e4eee36c8d [FIX] remove empty modules
bzr revid: chs@openerp.com-20120822132341-s2t6euk09e9v85i0
2012-08-22 15:23:41 +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 b873d36b90 [FIX] mail: more typos
bzr revid: odo@openerp.com-20120822124307-qnwx6nk66msz01jx
2012-08-22 14:43:07 +02:00
Olivier Dony 8b78127210 [FIX] mail: typo
bzr revid: odo@openerp.com-20120822123858-e3alagahniwbdpgz
2012-08-22 14:38:58 +02:00
Christophe Simonis d9a869c925 [FIX] remove loggging for test "test_out_of_range" of "test_impex" module
bzr revid: chs@openerp.com-20120822122123-h3zmh55aw7zwtep4
2012-08-22 14:21:23 +02:00
Christophe Simonis 4eafc023b3 [IMP] tools.misc.mute_logger can now be used as decorator
bzr revid: chs@openerp.com-20120822122013-9uxjwr9oqohseton
2012-08-22 14:20:13 +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
Christophe Simonis 89f1693653 [IMP] remove unwanted log in test
bzr revid: chs@openerp.com-20120822110604-il0sxlvf592wasur
2012-08-22 13:06:04 +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 40949f8052 [FIX] mail.js: fixed a wrong var name.
bzr revid: tde@openerp.com-20120822110057-1dqo701k2lmpmoxo
2012-08-22 13:00:57 +02:00
Christophe Simonis d3fcdb2ac7 [FIX] sequence testing
bzr revid: chs@openerp.com-20120822105552-ieex9esjg5wwke8q
2012-08-22 12:55:52 +02:00