diff options
| author | ryv-odoo <ryv@odoo.com> | 2019-09-05 14:58:23 +0000 |
|---|---|---|
| committer | ryv-odoo <ryv@odoo.com> | 2019-09-12 14:53:44 +0000 |
| commit | 076e71cb5b73ab23ca3abcc0764cc9e46a59b38f (patch) | |
| tree | 9b36cb857625bb58706c20165469c2b5177a0f2e /addons/sms/views | |
| parent | 8ef1543908b482820186f60a976bc44808b0c600 (diff) | |
[IMP] sms: allow to preview a sms template
Add a way for the user to preview sms content from a sms
template depending of a record (targeted model) and the
installed languages (as for the mail template). Add button
to open this preview on the form of the sms template.
TASK_ID : 2053631
Diffstat (limited to 'addons/sms/views')
| -rw-r--r-- | addons/sms/views/sms_template_views.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/sms/views/sms_template_views.xml b/addons/sms/views/sms_template_views.xml index 1f339e4d944..24acfcac134 100644 --- a/addons/sms/views/sms_template_views.xml +++ b/addons/sms/views/sms_template_views.xml @@ -6,6 +6,11 @@ <field name="arch" type="xml"> <form string="SMS Templates"> <sheet> + <div class="oe_button_box" name="button_box"> + <button class="oe_stat_button" name="%(sms_template_preview_action)d" icon="fa-search-plus" string="Preview" + type="action" target="new" + context="{'template_id':active_id}"/> + </div> <div class="oe_title"> <label for="name" class="oe_edit_only" string="SMS Template"/> <h1><field name="name" required="1"/></h1> |
