From 076e71cb5b73ab23ca3abcc0764cc9e46a59b38f Mon Sep 17 00:00:00 2001 From: ryv-odoo Date: Thu, 5 Sep 2019 14:58:23 +0000 Subject: [PATCH] [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 --- addons/sms/__manifest__.py | 1 + addons/sms/views/sms_template_views.xml | 5 ++ addons/sms/wizard/__init__.py | 1 + addons/sms/wizard/sms_template_preview.py | 53 +++++++++++++++++++ .../sms/wizard/sms_template_preview_views.xml | 42 +++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 addons/sms/wizard/sms_template_preview.py create mode 100644 addons/sms/wizard/sms_template_preview_views.xml diff --git a/addons/sms/__manifest__.py b/addons/sms/__manifest__.py index 2b15020a219..90462b4c8fb 100644 --- a/addons/sms/__manifest__.py +++ b/addons/sms/__manifest__.py @@ -16,6 +16,7 @@ The service is provided by the In App Purchase Odoo platform. 'data/ir_cron_data.xml', 'wizard/sms_cancel_views.xml', 'wizard/sms_composer_views.xml', + 'wizard/sms_template_preview_views.xml', 'wizard/sms_resend_views.xml', 'views/ir_actions_views.xml', 'views/res_config_settings_views.xml', 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 @@
+
+