summaryrefslogtreecommitdiff
path: root/addons/email_template/wizard/mail_compose_message.py
AgeCommit message (Collapse)Author
2015-01-07[IMP] Mass mailings send in cronJulien De Coster
1. The merge of the "email_template" module into the "mail" module. 2. The send action of the mass mailing has been moved from the frontend to a cron, because it was too slow to send over 10,000 mails (the user's browser was blocked for 15 - 20 minutes). Mass mailings have now their own process in the kanban view. 3. Mails sent from the mail form are sent immediatly instead of from the mail queue (for instance, when you go to sales > customers > list view > select 2 -3 customers > More > Partner Mass Mailing). 4. Users have now the choice from which mailing list they want to unsubscribe when they click on the unsubscribe link at the bottom of the mail. 5. Mass mailings inherit from their campaign UTMs and mass mailing campaigns are linked to an UTM campaign. 6. Many little improvements
2015-01-06[MERGE] forward port of branch 8.0 up to ea54d4aChristophe Simonis
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-12-11[MERGE] forward port of branch saas-3 up to e11d1c2Denis Ledoux
2014-12-09[FIX] email_template: default model for save as new template featureDenis Ledoux
When sending a message with the "Compose new message" button on the right of the user menu, in the top bar, if you tried to save the message as template, you had a traceback because model field of email.template is mandatory, but was set to True because there is no model in such a case. As there is no any relevant model in such a place, and that the field is mandatory, mail.message is pretty convenient as the default value.
2014-10-02[FIX] email_template: don't escape the signature, it's a field `html`Simon Lejeune
Fields of html type are already escaped in database and the method `append_content_to_html` defaults the argument `plaintext` to True, then calls `plaintext2html` if this argument is True, resulting in the html signature being escaped twice.
2014-08-29[MERGE] forward port of branch saas-5 up to 24c25f5Christophe Simonis
2014-08-28[MERGE] forward port of branch saas-3 up to c914893Christophe Simonis
2014-08-28[MERGE] forward port of branch 7.0 up to 15ee4d8Christophe Simonis
2014-08-28[FIX] email_template: remove group restriction on field ↵Christophe Simonis
mail.compose.message.template_id This was added as a security check, but access to this field is need by the wizard itself. As non employee users can't read/create email templates, this will not be problematic
2014-08-28[MERGE] forward port of branch saas-5 up to 7e117b1Christophe Simonis
2014-08-28[MERGE] forward port of branch saas-3 up to ada9724Christophe Simonis
2014-08-28[MERGE] forward port of branch 7.0 up to 3509e15Christophe Simonis
2014-08-26[FIX] email_template: security, email_template no rights for externalsDenis Ledoux
2014-08-07[FIX] mail: compose wizard: fixed default_get overrides not correctly ↵Thibault Delavallée
managing the received field_list + improved custom call to default_get to correctly manage its in and out values.
2014-07-06[MERGE] new v8 api by rcoRaphael Collet
A squashed merge is required as the conversion of the apiculture branch from bzr to git was not correctly done. The git history contains irrelevant blobs and commits. This branch brings a lot of changes and fixes, too many to list exhaustively. - New orm api, objects are now used instead of ids - Environements to encapsulates cr uid context while maintaining backward compatibility - Field compute attribute is a new object oriented way to define function fields - Shared browse record cache - New onchange protocol - Optional copy flag on fields - Documentation update - Dead code cleanup - Lots of fixes
2014-04-24[MERGE] forward port of branch saas-3 up to revid 9429 ↵Christophe Simonis
chs@openerp.com-20140424123538-rxk9got9k2on1ki1 bzr revid: chs@openerp.com-20140424131824-4ksluvhnegp7kplb bzr revid: chs@openerp.com-20140424134533-lhhcd32n3s0m9cqk
2014-04-23[REM] Removed print statementThibault Delavallée
bzr revid: tde@openerp.com-20140423153008-jngdjm0qx7cgqctu
2014-04-23[FIX] email_template: when usign the composer in mass mailing mode withThibault Delavallée
a template, display the user's signature if asked by the template. The use will then be able to modify the generated content and to remove / update it if necessary; Otherwise the signature is not added in mass mailing mode, because the content of the email is based on the wizard's body, not the template one. Some rewriting in the onchange: now using a browse instead of a read. bzr revid: tde@openerp.com-20140423152926-sno0gk8lup9l442p
2014-04-16[FIX] email_template: back to partner_ids generation when using templatesThibault Delavallée
bzr revid: tde@openerp.com-20140416083946-2qlv0liu8doshh9q
2014-04-15[IMP] mail, mass_mailing: better recipientsz computationThibault Delavallée
for mass mailing, composer and template. This allows to have one method computing recipints and avoid repetiting myself. bzr revid: tde@openerp.com-20140415154700-zu2izvxfjq1k4h4a
2014-04-15[REM] mail: compose message: removed unnecessary codeThibault Delavallée
bzr revid: tde@openerp.com-20140415143343-on2d3j92o6zifq59
2014-03-25[IMP] email_template: added an option to automatically generateThibault Delavallée
recipients instead of using template-based values. This should be the default way of using templates actually, to avoid confusion with mako, ill-defined templates, ... email_template code has been updated to handle recipient_ids when creating an email, depending on its generated template values or default recipients. mail_compose_message has also been updated, delegating the calculation of recipient when having a template to the template itself, using some context keys to force the use of partners instead of email_to and email_cc. Also updated email_template form view to be a bit less confusing. bzr revid: tde@openerp.com-20140325140324-bljvybigk3zv5ugm
2014-03-21[CLEAN] email_template: mail_compose_message: small code cleaning and dead ↵Thibault Delavallée
code removal bzr revid: tde@openerp.com-20140321172025-ntwxfakem8odo2nt
2014-03-14[MERGE] Sync with trunkThibault Delavallée
bzr revid: tde@openerp.com-20140314162124-fn8f9ne80skha19h
2014-03-04MERGE] [FIX] email_template: fix relative -> absolute url conversionThibault Delavallée
Local URLs are converted into absolute URLs, notably because when using the email designer, images are added using local URLs. Previously to this fix the template was analyzed to find local URLs and make them absolute. However this causes 2 issues : - mako-based URLs are broken because a scheme is added before the mako that generated the image src - when changing the base url, the templates are not updated The URLs are now converted dynamically when generating the content of the html. This is done by passing a new parameter that enable the post processing of the generated content. Also fixed double body generation when using templates; fields parameter was not propagated correctly. bzr revid: tde@openerp.com-20140304112957-l9b10gyjqphs5fgc
2014-02-27[FIX] email_template :Thibault Delavallée
- fixed composer using template that were rendering the body twice, once form the template and once from the composer body. Only the latter one is used, so avoid generating the template body that is not necessary - fixed email_template generating values for a set of given fields, ignoring the field list given into parameter - fixed post processing of templates to transform local urls into absolute urls; now urls are transformed after body generation, when sending email based on templates , or when generating the content when using the composer. bzr revid: tde@openerp.com-20140227153835-gmqnxrzed9fnbxhm
2014-02-20[IMP] mail, email_template: mass mailing feature cleaningThibault Delavallée
- now differentiates mass mailing and mass post. - mass mailing is a true mass mailing - using same_thread log a copy in the document, without using message_post (using notification field, + model and res_id) - improved form view of composer, adding a filed explaining a bit the various recipients - removed unnecessary fields coming from the template (partner_to, ...) because they are confusing -> composer should be easier to understand and use - removed some unnecessary code - removed double body computation when using templates (one for tmeplate, then the wizard -> not necessary) This commit will be followed by other to try to improve the mass mailing and mass post. bzr revid: tde@openerp.com-20140220152945-ash0hfkzevzamihq
2014-01-25[IMP] mini impFabien Pinckaers
bzr revid: fp@openerp.com-20140125123758-4fhewd19ib38oal3
2014-01-17[MERGE]Merge with ParentPooja Zankhariya (OpenERP)
bzr revid: pza@tinyerp.com-20140117062056-yaw069hktnsk3iwj
2014-01-16[MERGE] Sync with trunk, tries to solve conflicts. There are still some new ↵Thibault Delavallée
images to convert into images in xml files. bzr revid: tde@openerp.com-20140116103910-qmm2y6kucmngplnk
2014-01-15[MERGE]Merge with ParentPooja Zankhariya (OpenERP)
bzr revid: pza@tinyerp.com-20140115123052-n9pfmaoh5jzev28d
2014-01-14[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9761 ↵Denis Ledoux
revid:dle@openerp.com-20140114164804-zhfy9lb308554kp1 bzr revid: dle@openerp.com-20140114173653-xhh85ubx27uu1306
2014-01-14[FIX] email_template: fix invalid uses of tools.email_splitOlivier Dony
This is necessary to have the tests pass after the corresponding server patch in server 7.0 at revision 5198 revision-id: odo@openerp.com-20140114120344-r58wndgybqusnnq7 lp bug: https://launchpad.net/bugs/1199386 fixed lp bug: https://launchpad.net/bugs/1165531 fixed bzr revid: odo@openerp.com-20140114134627-6j83f4s6pvnj4uma
2014-01-06[MERGE] Sync with trunkThibault Delavallée
bzr revid: tde@openerp.com-20140106135700-rt0g44w5xmpbtxiu
2014-01-01[IMP] several cleaningFabien Pinckaers
bzr revid: fp@tinyerp.com-20140101154754-cp4m9u84okx7m057
2013-12-24[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9718 rev-id: ↵Denis Ledoux
dle@openerp.com-20131224103535-rhtje7dnq1ie7jtb bzr revid: tde@openerp.com-20131220162158-hbgktly09dv37958 bzr revid: dle@openerp.com-20131223155041-8zp8e08fihbr0ie2 bzr revid: dle@openerp.com-20131224112407-aw6dq2q92312kjbk
2013-12-17[FIX] email_template: fixed default_get, not possible ot render when we do ↵Thibault Delavallée
not have any data about the record used for rendering bzr revid: tde@openerp.com-20131217165931-muxsi0hwhihcvo1f
2013-12-10[MERGE]: with mainajay javiya (OpenERP)
bzr revid: aja@tinyerp.com-20131210050701-116a01x8r194arg2
2013-12-06[CLEAN] mail: removed modifications that have nothing to do with website in ↵Thibault Delavallée
mail.js + typo introduced in a test file bzr revid: tde@openerp.com-20131206101716-08q6f4ufhj50e239
2013-12-02[ADD]: Quote roller moduleajay javiya (OpenERP)
bzr revid: aja@tinyerp.com-20131202123437-zn6u2ckxbid3jknb
2013-11-20[IMP] email_template: already generate tmeplate values in default_getThibault Delavallée
bzr revid: tde@openerp.com-20131120135904-r630n937txivqak9
2013-08-28[IMP] mail.compose.message, email.template: rendering is now done in batch.Thibault Delavallée
Also refactored send_mail in mail.compose.message in order to be able to override mail values without having to intefere with the send_mail behavior. bzr revid: tde@openerp.com-20130828140929-xe9hbmbo6jxgs9mh
2013-08-20[MERGE] Forward-port of bugfixes from saas-1 series up to rev.8759 rev-id: ↵Olivier Dony
odo@openerp.com-20130820152607-0p0fx87v1rqhk3vy bzr revid: odo@openerp.com-20130820165258-3mjzbo990xg44dfu
2013-07-22[IMP] mail: mail.message now has mail_server_id from template_id.Thibault Delavallée
bzr revid: tde@openerp.com-20130722131725-i30xd4b03nui3hyw
2013-07-18[MERGE] forward port of branch 7.0 up to revid 9302 ↵Christophe Simonis
chs@openerp.com-20130718111616-apacuhc2qhquobtc bzr revid: dle@openerp.com-20130627104833-b9zgtu8urj43f12b bzr revid: mat@openerp.com-20130702135856-kmg7d8anw17nkbd8 bzr revid: chs@openerp.com-20130718115928-wpa84dqh8tcq31zt
2013-07-16[FIX]email_template: generate_email_for_composer, clean context before find ↵Denis Ledoux
or create partner, to avoid default values for partner bzr revid: dle@openerp.com-20130716095928-z79ipwgjxw5ypg3y
2013-06-06[FIX] mail.compose.message in email_template: var typoThibault Delavallée
bzr revid: tde@openerp.com-20130606130851-h5jswklvvz98enue
2013-06-06[FIX] mail.compose.message: supports user_signature of template. Note that ↵Thibault Delavallée
in case of multiple wizards (send on ids that is not a singleton list), user_signature on one template is valid for all wizard. bzr revid: tde@openerp.com-20130606123724-f7q3mwm81ek7mr5c
2013-04-11[FIX] email_template: fixed errors due to template_id now being a many2one, ↵Thibault Delavallée
not an int anymore. bzr revid: tde@openerp.com-20130411134119-q1o71pn34v8u49jy