Commit Graph

69 Commits

Author SHA1 Message Date
Thibault Delavallée 88ce376c32 [CLEAN] mail_compose_message: removed default values for partner_ids, that were a bit strange.
bzr revid: tde@openerp.com-20120903181000-4al2stqzqfw4bhfc
2012-09-03 20:10:00 +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
Thibault Delavallée 0b67a85725 [FIX] mail.message, mail.compose.message: fixed attachments management, added tests.
bzr revid: tde@openerp.com-20120831125605-1oizomm2pv3b5rse
2012-08-31 14:56:05 +02:00
Olivier Dony 9aabe91bbf [FIX] email_template: wip - trying to make templates work again
bzr revid: odo@openerp.com-20120830174452-59q43k1x13at4i37
2012-08-30 19:44:52 +02:00
Thibault Delavallée 00fc7d1e88 [IMP] mail.compose.message: added basic mass_mail support back. Moved generation into a dedicated method, to be inherited in email_template. Added somes tests in mail to test mass_mailing without email_template.
bzr revid: tde@openerp.com-20120830143549-33sgtd30asvztg2c
2012-08-30 16:35:49 +02:00
Thibault Delavallée bec83eef6f [REF] mail_mail: body_html is back, holding the body of emails to send.
Body of send emails is mail_mail.body_html, not body anymore.
Signature adding is back to mail_followers.notify().
Subject adding is still done just before sending.
Updated mail_mail view. mail.compose.message: body_text inside <pre>. 
[TESTS] mail: added tests for message_post, updated tests for mail.message.compose to test the composer only.

bzr revid: tde@openerp.com-20120830085116-o5h13yqodt0vof0k
2012-08-30 10:51:16 +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
Thibault Delavallée aa20e32fba [FIX] mail.compose.message: added a log access because it seems abstract model need that ...
bzr revid: tde@openerp.com-20120828095046-tqx7gpm6d2we4d1o
2012-08-28 11:50:46 +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 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
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
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
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
Fabien Pinckaers afbcc4b579 [FIX] compisition seems to work
bzr revid: fp@tinyerp.com-20120820190231-3cnvj7dtmfgojal4
2012-08-20 21:02:31 +02:00
Fabien Pinckaers 4b6303f205 fix
bzr revid: fp@tinyerp.com-20120820184602-dlz954b8wisethpi
2012-08-20 20:46:02 +02:00
Fabien Pinckaers 9d61a88b40 [IMP] compose wizards
bzr revid: fp@tinyerp.com-20120820165110-h6dub7l7zaufpj3n
2012-08-20 18:51:10 +02:00
Fabien Pinckaers 9fd90c604e test
bzr revid: fp@tinyerp.com-20120820140901-pqvj3fj8zruit3f4
2012-08-20 16:09:01 +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 cb944d66ea [IMP] mail message
bzr revid: fp@tinyerp.com-20120817070218-rp1ssuhwnf8raitf
2012-08-17 09:02:18 +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 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
Thibault Delavallée 620b7e9b11 [IMP] Addons: user_email -> email.
bzr revid: tde@openerp.com-20120810144339-30ro9omgfxtjtjyz
2012-08-10 16:43:39 +02:00
Thibault Delavallée 707c2dd573 [FIX] mail.compos.message: outgoing state only for emails. Send only emails, also.
bzr revid: tde@openerp.com-20120720125709-rgfiwsy8qp3z5x1f
2012-07-20 14:57:09 +02:00
Thibault Delavallée 9cfa2908b8 [FIX] mail_compose_message: lost '{'.
bzr revid: tde@openerp.com-20120720082549-2z2feyuk37xrlqtw
2012-07-20 10:25:49 +02:00
Thibault Delavallée 7e748858cd [FIX] mail compose message: fixed body_html on quotation, fixed reference and header computation.
bzr revid: tde@openerp.com-20120719141201-32rl7t40qhzu0ylj
2012-07-19 16:12:01 +02:00
Thibault Delavallée 21c9788aa7 [FIX] email_template: fixed active_mode, active_id and active_ids.
bzr revid: tde@openerp.com-20120716164825-dj5643lgo6fk6j3h
2012-07-16 18:48:25 +02:00
Thibault Delavallée 5fd83d2e80 [IMP] mail: chatter composition form: added a reinitialization of the widget.
bzr revid: tde@openerp.com-20120716135403-xvgc8ew0c62hrv3s
2012-07-16 15:54:03 +02:00
Thibault Delavallée 98f172c523 [IMP] mail: composition form: removed default body_html;
bzr revid: tde@openerp.com-20120716082951-gpn3x9vr514j0a3r
2012-07-16 10:29:51 +02:00
Thibault Delavallée f806af0240 [IMP] mail-Chatter: composition form: improved behavior of 'email_mode' and 'formatting'. They now calls onchange methods, that gives default values for dest_partner_ids, subject and so on. Partners are created when toggling into email mode, if not present in the database, based on the email_from of the document.
bzr revid: tde@openerp.com-20120713142333-y7krivwnybxkjl5b
2012-07-13 16:23:33 +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 4d7fc2da17 [IMP] mail: chatter: composition widget now correctly manage default email_mode and formatting values; refactored code related to those options; reply is possible for every message, and formatting and email mode taken into account accordingly.
bzr revid: tde@openerp.com-20120712141857-ll0pf737a2ytobiy
2012-07-12 16:18:57 +02:00
Thibault Delavallée ca3a65040f [IMP] mail.compose.message: when in text mode, remove subject.
bzr revid: tde@openerp.com-20120711143245-io0dwpp8w6dqahvr
2012-07-11 16:32:45 +02:00
Thibault Delavallée 11b452ed00 [FIX] mail compose message: fixed mail thread enabled check.
bzr revid: tde@openerp.com-20120711131404-nythwj4gi3gvk66a
2012-07-11 15:14:04 +02:00
Thibault Delavallée 78ce7b2165 [IMP] mail.compose.message: cleaned code and behavior of embedded composition form.
bzr revid: tde@openerp.com-20120710153316-dbj8d2kb6rynqu22
2012-07-10 17:33:16 +02:00
Thibault Delavallée 8ab1b22d1e [IMP] Chatter: composition form: added 'reply' behavior. Code is still dirty.
bzr revid: tde@openerp.com-20120710130631-nehjl8988ucm6w2n
2012-07-10 15:06:31 +02:00
Thibault Delavallée 4fad550d69 [MERGE] Merged with main addons.
bzr revid: tde@openerp.com-20120709081834-18pf4bol39s50uno
2012-07-09 10:18:34 +02:00
Thibault Delavallée d32c2a2efb [IMP] mail.compose.message wizard: WIP about new behavior.
bzr revid: tde@openerp.com-20120706155141-u1h3y84i5f31ejoo
2012-07-06 17:51:41 +02:00
Thibault Delavallée 3e31df9f17 [IMP] mail_compose_message: cleaned default_get, models and misc.
bzr revid: tde@openerp.com-20120706101130-94bwiswel46qo52b
2012-07-06 12:11:30 +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 3770835114 [WIP] Chatter: embedded form view: work in progress to make it work.
bzr revid: tde@openerp.com-20120706073852-1j0uj60l64xxrpzk
2012-07-06 09:38:52 +02:00
Raphael Collet 6b1606f8de [IMP] move crm.wizard.mail_compose_message to module mail, to reduce module dependencies on crm
bzr revid: rco@openerp.com-20120703131453-dz0gpdq3t9155bfw
2012-07-03 15:14:53 +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
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
Thibault Delavallée 22f573850c [WIP] Thrad widget: work about the composition form widget.
bzr revid: tde@openerp.com-20120621152428-b6bk3o5su63xy9tm
2012-06-21 17:24:28 +02:00
Thibault Delavallée 931302eca0 [IMP] Thread widget: cleaned links, added reply by e-mail links. Added in mail.compose.message wizard support for a 'message_id' in context have a document with reply behavior. Also cleaned a bit the mail;js code. Updated a detail in a default temporary data in hr_recruitment.
bzr revid: tde@openerp.com-20120510121058-a2emjtvm227603ou
2012-05-10 14:10:58 +02:00