summaryrefslogtreecommitdiff
path: root/addons/theme_default/data/theme_default_data.xml
diff options
context:
space:
mode:
authorlaa <laa@odoo.com>2019-09-11 15:04:40 +0000
committerThibault Delavallée <tde@odoo.com>2019-11-07 16:19:37 +0000
commit72aa04984463db0b15770cbf26fd15dd9c2ccaee (patch)
tree1cbd3b140dd9338a4a2f3e460cb552dd148487d8 /addons/theme_default/data/theme_default_data.xml
parentdc70fb35a104e260b40425fce23cba84b9770994 (diff)
[IMP] mail, mass_mailing: add dynamic placeholder mixin and use it in mailing and templates
PURPOSE Upgrade the "mass_mailing" and "mass_mailing_sms" modules with a dynamic placeholder generator as it already exists in "mail module" as depicted in https://www.screencast.com/t/cnFA0gIY. SPECIFICATIONS As duplicated code already exists for that and that a third version of this code has to be added, instead create a mixin for this dynamic placeholder generator to avoid code duplication. Thereby * a mail.render mixin for the dynamic placeholder generator must be created in mail; * dynamic placeholder generator code present in mail.template.py must be moved to that mixin and replaced by a simple inherit; * use the mixin in * mail templates: mail.template.py (mail module); * mass mailings: mailing.py (mass_mailing module); * sms templates: sms.template (mass_mailing_sms module); In a near future, some code will be added in this mixin, notably the template rendering that could be moved outside of mail.template core model and moved in that rendering mixin. LINKS Task ID 2070612 PR #36722 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/theme_default/data/theme_default_data.xml')
0 files changed, 0 insertions, 0 deletions