From d59fd862f1e8dc2663c360194e4e9f1bbf3d7230 Mon Sep 17 00:00:00 2001 From: Parth Choksi Date: Thu, 21 Feb 2019 05:05:40 +0000 Subject: [IMP] auth_signup : send a reminder for pending users Purpose of this commit is to send a mail template to the user who invited other user(s) in Odoo. It informs the user about the details of user(s) who have been invited by him but have still not registered after the given days of creation (default set to -> 5days) task-1912449 Closes #31582 Signed-off-by: Thibault Delavallee (tde) --- addons/auth_signup/data/auth_signup_data.xml | 52 ++++++++++++++++++++++++++++ addons/auth_signup/data/ir_cron_data.xml | 13 +++++++ 2 files changed, 65 insertions(+) create mode 100644 addons/auth_signup/data/ir_cron_data.xml (limited to 'addons/auth_signup/data') diff --git a/addons/auth_signup/data/auth_signup_data.xml b/addons/auth_signup/data/auth_signup_data.xml index 88852ce662b..5fe062a6d44 100644 --- a/addons/auth_signup/data/auth_signup_data.xml +++ b/addons/auth_signup/data/auth_signup_data.xml @@ -197,6 +197,58 @@ + + + Auth Signup: Unregistered Users + + Reminder for unregistered users + ${object.company_id.partner_id.email_formatted|safe} + ${object.email_formatted|safe} + + +
+ + + + + + + +
+ + % set invited_users = ctx['invited_users'] + + + +
+ + Pending Invitations +

+
+
+ Dear ${object.name or ''},

+ You added the following user(s) to your database but they haven't registered yet: +
    + % for invited_user in invited_users: +
  • ${invited_user}
  • + % endfor +
+ Follow up with them so they can access your database and start working with you. +

+ Have a nice day!
+ --
The ${object.company_id.name} Team +
+
+
+
+
+
+
+ ${object.partner_id.lang} + + +
+ Auth Signup: Odoo Account Created diff --git a/addons/auth_signup/data/ir_cron_data.xml b/addons/auth_signup/data/ir_cron_data.xml new file mode 100644 index 00000000000..b583d5e65fd --- /dev/null +++ b/addons/auth_signup/data/ir_cron_data.xml @@ -0,0 +1,13 @@ + + + + Users: Notify About Unregistered Users + + code + model.send_unregistered_user_reminder() + + 1 + days + -1 + + -- cgit v1.2.3