Commit Graph

138 Commits

Author SHA1 Message Date
Nicolas Martinelli eaaca65594 [FIX] mail: does not write "False" if mail body is empty
opw-640309
2015-05-21 12:22:50 +02:00
Martin Trigaux 1ab962d338 [FIX] mail: convert attachments to binary as it is the expected format of message_post opw 604205
The double convertion (render_message and send_mail) is done to keep the API but should be changed in next version.

bzr revid: mat@openerp.com-20140415161441-q6pfueetvv0namgw
2014-04-15 18:14:41 +02:00
Olivier Dony 96dd64e31f [REVERT] mail: undo model-level change that can cause issue for stable deployments
Failing to force a manual update of the mail module would cause
all composer wizards to display html contents without the WYSIWYG
editor, making it mostly unusable for regular users. Users are
not expected to always force an update of all modules after
updating to the latest source code.

bzr revid: odo@openerp.com-20130417081410-dwc33ymizlihvbng
2013-04-17 10:14:10 +02:00
Christophe Simonis b2d6c80569 [IMP] mail/wizard/mail_compose_message.py: add comment explaining why we use a text field for the body
bzr revid: chs@openerp.com-20130412132231-84wz56s2r4ordxw1
2013-04-12 15:22:31 +02:00
Christophe Simonis 326506db2c [FIX] mail: mail composer: Use a text field instead of a html field
html fields are sanitized just before saving data into the database.
In the composer, this cause the sanitization of the templated
message (for mass mailing messages) before the rendering, forbidding
the use of templated html links.
The html of the message is sanitized by  message_post()

bzr revid: chs@openerp.com-20130411182226-lwnpkh4tmyswjjnc
2013-04-11 20:22:26 +02:00
Thibault Delavallée 9e4486ae52 [FIX] mail: fixed missing conflict resolution
bzr revid: tde@openerp.com-20130411104659-ik62af6wubzu5j6q
2013-04-11 12:46:59 +02:00
Thibault Delavallée fe2ea997a2 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130411103645-rmr3sa8p9ropx2gc
2013-04-11 12:36:45 +02:00
Thibault Delavallée 40244df4c1 [IMP] mail.compose.message: copied attachments in mass mail mode are linked to the composer, because message_post will update their model and res_id.
bzr revid: tde@openerp.com-20130306161151-gczob78pmt683kw7
2013-03-06 17:11:51 +01:00
Thibault Delavallée b1b3ed971a [REM] Removed attachment removal because garbage collecting will do it.
bzr revid: tde@openerp.com-20130306160517-b0rdbait2h6c9c77
2013-03-06 17:05:17 +01:00
Thibault Delavallée d794920d43 [IMP] mail.compose.message: remove attachment_ids from render_message as it should not be there; assume wizard.attachment_ids is always correct.
bzr revid: tde@openerp.com-20130306134437-ywoi1p1nr2e1no97
2013-03-06 14:44:37 +01:00
Thibault Delavallée c7d8842b02 [IMP] mail, email_template: fixed attachment management (template does not override provided attachments anymore; fixed possible unexisting attachment ids key; fixed some duplication.
bzr revid: tde@openerp.com-20130304092248-mqadzmrhgdu58j8y
2013-03-04 10:22:48 +01:00
Thibault Delavallée 46a5b63cad [IMP] email_template: better management of attachments. In mass mail, we want attachments to be duplicated due to the ownership concept of attachments in OpenERP.
bzr revid: tde@openerp.com-20130301144827-762362bgng5m4nye
2013-03-01 15:48:27 +01:00
Thibault Delavallée df6a3997c2 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130301111146-1s5ckk09wdt88vb4
2013-03-01 12:11:46 +01:00
Thibault Delavallée aa865c8b61 [FIX] Still fixing attachments through templates.
bzr revid: tde@openerp.com-20130228145513-6g30ujr3cm0j8b3u
2013-02-28 15:55:13 +01:00
Thibault Delavallée b0eb876160 [FIX] mail: first try to fix attachment duplication.
bzr revid: tde@openerp.com-20130228132625-8yjggruhrvbvep21
2013-02-28 14:26:25 +01:00
Thibault Delavallée d2e1ff39cc [IMP] Chatter: full wizard composer does not display recipients in 'log' mode.
bzr revid: tde@openerp.com-20130226125038-bgpmfrmt3v44i870
2013-02-26 13:50:38 +01:00
Thibault Delavallée e09eb34a36 [IMP] mail: auto_follow mechanism moved into message_post.
bzr revid: tde@openerp.com-20130221130900-5l9wu6jrqh3l5yar
2013-02-21 14:09:00 +01:00
Thibault Delavallée cd13bb9cf9 [CLEAN] mail: stop doing ugly things with partner_ids values before passing values to mail_message.create().
bzr revid: tde@openerp.com-20130221095906-5rbwnc83mjvpkyhh
2013-02-21 10:59:06 +01:00
Thibault Delavallée cf4c6b442e [CLEAN] Some code cleaning.
bzr revid: tde@openerp.com-20130108161332-e1ekhtneh0mryhno
2013-01-08 17:13:32 +01:00
Christophe Matthieu ee08ed5a57 [FIX] mail: default_partner_ids
bzr revid: chm@openerp.com-20130104144833-1wf6fc00jl6vrmri
2013-01-04 15:48:33 +01:00
Thibault Delavallée 92597407f8 [CLEAN] Cleaned the cleaning of the fix.
bzr revid: tde@openerp.com-20130327111910-l7a9s5rk05b8jbme
2013-03-27 12:19:10 +01:00
Thibault Delavallée f307221f04 [IMP] Cleaned the fix.
bzr revid: tde@openerp.com-20130327111750-auc217sdkg4gieci
2013-03-27 12:17:50 +01:00
Thibault Delavallée 0004301b23 [IMP] mail: now have a subject in composer.
bzr revid: tde@openerp.com-20130326165015-czid1h8xot4mdhyi
2013-03-26 17:50:15 +01:00
Thibault Delavallée db5f32bb46 [CLEAN] mail: cleaned code of last fixes
bzr revid: tde@openerp.com-20130320141907-rxnstq7k8hrkcnl1
2013-03-20 15:19:07 +01:00
Thibault Delavallée 5d25e9d780 [FIX] mail_compose_message: fixed mass_mail subscribing the author to all documents, not the case anymore; fixed access rule on mail_compose_message not taking into account the wizard creation in mass_mail_mode (model but no res_id -> could lead to crash).
bzr revid: tde@openerp.com-20130320135013-mryxzwssd346t78y
2013-03-20 14:50:13 +01:00
Thibault Delavallée 2c497fab50 [FIX] mail: mass mailing now does not push to followers; only to specific recipients. Improved tests for this update.
bzr revid: tde@openerp.com-20130320084040-pcgzy068z0oph298
2013-03-20 09:40:40 +01:00
Thibault Delavallée b37450ba49 [IMP] sale, purchase, invoice: automatically subscibe recipints of Send by email as document followers.
bzr revid: tde@openerp.com-20121221095902-k2xk928po48cogdm
2012-12-21 10:59:02 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Thibault Delavallée cd0aab0789 [FIX] mail.compose.message: fixed creation of message on its own profile (res_users -> res_partner).
bzr revid: tde@openerp.com-20121212160736-wcas9ucgzkcm1o7f
2012-12-12 17:07:36 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Olivier Dony b770240247 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121120113600-4oyx9sziigbxn8w8
bzr revid: odo@openerp.com-20121120163429-l4cf6r75vwqfvxty
2012-11-20 17:34:29 +01:00
Olivier Dony 01df612cd9 [FIX] mail.compose.wizard: attachments should be m2m, body_text and content_subtype obsolete and removed
bzr revid: odo@openerp.com-20121116170503-mvsaa0pv5py2b7ri
2012-11-16 18:05:03 +01:00
Christophe Matthieu c1192ec3a0 [FIX] mail.compose.message: files can be attach to a document and send by mail
bzr revid: chm@openerp.com-20121116111226-0xvb262et94k7omh
2012-11-16 12:12:26 +01:00
Olivier Dony e5921325bd [REM] mail.compose.wizard: remove unused body_text and content_subtype fields
These fields were used in pre-7.0 to manage the plaintext variant of the 
mail being composed, but as of 7.0 the composition wizard will always
use the HTML/Rich text mode, so they can be dropped.

bzr revid: odo@openerp.com-20121115135634-fcy6mexnctwg0nxb
2012-11-15 14:56:34 +01:00
Thibault Delavallée edb1e07948 [FIX] composer: default content subtype is html (note that plaintext management will be removed asap), name_get is now using an id list instead of a single id.
bzr revid: tde@openerp.com-20121115095309-zu4m6nzndlpmfe5b
2012-11-15 10:53:09 +01:00
Thibault Delavallée aa91324cd4 [IMP] mail.compose.message wizard form view: updated a bit display of recipients, displaying Follows of XXX, when commenting a document, to clarify a bit which partners will receive the email.
bzr revid: tde@openerp.com-20121109135612-xw86jk4jlri8zfxp
2012-11-09 14:56:12 +01:00
Christophe Matthieu 03f8275cdc [IMP] mail: remove the onchange code in wizard/mail_compose_message.py
bzr revid: chm@openerp.com-20121031154044-641rih2zw1jffiem
2012-10-31 16:40:44 +01:00
Thibault Delavallée cbf55bc07d [IMP] [FIX] mail: replying with the wizard does not quote the original message anymore. Updated tests.
bzr revid: tde@openerp.com-20121029100910-c0y6tl1zg2qsqfv5
2012-10-29 11:09:10 +01:00
Christophe Matthieu 31965cf97a [IMP] mail: insert message post, and no quote for reply
bzr revid: chm@openerp.com-20121025095923-7urqi5he10q3z1i6
2012-10-25 11:59:23 +02:00
Thibault Delavallée 8e271d9ba1 [MISC] mail_compose_message: removed forgottent print statemetn.
bzr revid: tde@openerp.com-20121017134508-0pofvym9thbz122k
2012-10-17 15:45:08 +02:00
Thibault Delavallée 925d0a138b [CLEAN] mail.compose.message: removed form view that was done for Chatter, as this is not used anymore.
bzr revid: tde@openerp.com-20121017092642-e27p41f9rqzd2rpm
2012-10-17 11:26:42 +02:00
Thibault Delavallée c3aecf0630 [FIX] Fixed fix of revision 7750. Correct fix was to add in the generated action an use_template context key, that triggers the use of templates. Eveything is then managed inside the email_template override of mail.compose.message.
bzr revid: tde@openerp.com-20121016115839-8cj0u9si20qo14av
2012-10-16 13:58:39 +02:00
Christophe Matthieu 30be16b0fc [MERGE] from trunk
bzr revid: chm@openerp.com-20121011074626-rztxx7vnhg8sd72l
2012-10-11 09:46:26 +02:00
Jalpesh Patel (OpenERP) e846176dfa [IMP]default_get method in mail_compose_message
bzr revid: pja@tinyerp.com-20121008071731-ra4p1a2s5aiu4v4f
2012-10-08 12:47:31 +05:30
Jalpesh Patel (OpenERP) e676beaa38 [IMP]check condition
bzr revid: pja@tinyerp.com-20121008061146-jz78eocp772xztob
2012-10-08 11:41:46 +05:30
Jalpesh Patel (OpenERP) 50a7718e45 [IMP]send mail (automated purchase order notification mail)
bzr revid: pja@tinyerp.com-20121005131804-qliwjans60m08lhx
2012-10-05 18:48:04 +05:30
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 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 8cafaceb4a [MERGE]from trunk-openchatter-chm
bzr revid: chm@openerp.com-20121002105328-1u9qk83fb5jz9teh
2012-10-02 12:53:28 +02:00