From 54f5c6c70ffe4bb8020a0106d3b8fde0ca34a45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 27 May 2019 09:36:11 +0000 Subject: [PATCH] [IMP] sms: add some demo data It allows notably to check and test mail failure widgets as well as wizards to resend and/or cancel sms notifications. Related to task 1922163 Linked to PR #33510 --- addons/sms/__manifest__.py | 4 +++ addons/sms/data/mail_demo.xml | 62 +++++++++++++++++++++++++++++++++++ addons/sms/data/sms_demo.xml | 8 +++++ 3 files changed, 74 insertions(+) create mode 100644 addons/sms/data/mail_demo.xml create mode 100644 addons/sms/data/sms_demo.xml diff --git a/addons/sms/__manifest__.py b/addons/sms/__manifest__.py index 9cf60447885..ccfae7f9049 100644 --- a/addons/sms/__manifest__.py +++ b/addons/sms/__manifest__.py @@ -23,6 +23,10 @@ The service is provided by the In App Purchase Odoo platform. 'views/sms_template_views.xml', 'security/ir.model.access.csv', ], + 'demo': [ + 'data/sms_demo.xml', + 'data/mail_demo.xml', + ], 'qweb': [ 'static/src/xml/thread.xml', ], diff --git a/addons/sms/data/mail_demo.xml b/addons/sms/data/mail_demo.xml new file mode 100644 index 00000000000..103a89fbd8c --- /dev/null +++ b/addons/sms/data/mail_demo.xml @@ -0,0 +1,62 @@ + + + + res.partner + +

Hello! This is an example of incoming email.

+ email + + + +
+ + res.partner + +

Hello! This is an example of user comment.

+ comment + + + +
+ + + + email + exception + SMTP + + + + res.partner + +

Hello! This is an example of SMS.

+ sms + + + +
+ + res.partner + +

Hello! This is an example of another SMS with notifications.

+ sms + + + +
+ + + + sms + exception + sms_credit + + + + + sms + exception + sms_credit + + +
diff --git a/addons/sms/data/sms_demo.xml b/addons/sms/data/sms_demo.xml new file mode 100644 index 00000000000..b3d252c1e02 --- /dev/null +++ b/addons/sms/data/sms_demo.xml @@ -0,0 +1,8 @@ + + + + Customer: automated SMS + + Dear ${object.display_name} this is an automated SMS. + +