From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/auth_signup/data/auth_signup_data.xml | 348 +++++++++++++++++++++++++++ addons/auth_signup/data/ir_cron_data.xml | 13 + 2 files changed, 361 insertions(+) create mode 100644 addons/auth_signup/data/auth_signup_data.xml 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 new file mode 100644 index 00000000..10505628 --- /dev/null +++ b/addons/auth_signup/data/auth_signup_data.xml @@ -0,0 +1,348 @@ + + + + + + + + + + Auth Signup: Reset Password + + Password reset + "${object.company_id.name | safe}" <${(object.company_id.email or user.email) | safe}> + ${object.email_formatted | safe} + + + + +
+ + + + + + + + + + + + + + + +
+ + + +
+ Your Account
+ + ${object.name} + +
+ ${object.company_id.name} +
+
+
+
+ + + +
+
+ Dear ${object.name},

+ A password reset was requested for the Odoo account linked to this email. + You may change your password by following this link which will remain valid during 24 hours:
+ + If you do not expect this, you can safely ignore this email.

+ Thanks, + % if user.signature: +
+ ${user.signature | safe} + % endif +
+
+
+
+
+ + + +
+ ${object.company_id.name} +
+ ${object.company_id.phone} + % if object.company_id.email + | ${object.company_id.email} + % endif + % if object.company_id.website + | + ${object.company_id.website} + + % endif +
+
+
+ + +
+ Powered by Odoo +
+
+
+ ${object.lang} + +
+ + + + Auth Signup: Odoo Connection + + ${object.create_uid.name} from ${object.company_id.name} invites you to connect to Odoo + "${object.company_id.name | safe}" <${(object.company_id.email or user.email) | safe}> + ${object.email_formatted | safe} + + + + +
+ + + + + + + + + + + + + + + +
+ + + +
+ Welcome to Odoo
+ + ${object.name} + +
+ ${object.company_id.name} +
+
+
+
+ + + +
+
+ Dear ${object.name},

+ You have been invited by ${object.create_uid.name} of ${object.company_id.name} to connect on Odoo. + + % set website_url = object.env['ir.config_parameter'].sudo().get_param('web.base.url') + Your Odoo domain is: ${website_url}
+ Your sign in email is: ${object.email}

+ Never heard of Odoo? It’s an all-in-one business software loved by 3+ million users. It will considerably improve your experience at work and increase your productivity. +

+ Have a look at the Odoo Tour to discover the tool. +

+ Enjoy Odoo!
+ --
The ${object.company_id.name} Team +
+
+
+
+
+ + + +
+ ${object.company_id.name} +
+ ${object.company_id.phone} + % if object.company_id.email + | ${object.company_id.email} + % endif + % if object.company_id.website + | + ${object.company_id.website} + + % endif +
+
+
+ + +
+ Powered by Odoo +
+
+ ${object.lang} + +
+ + + + 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 + + Welcome to ${object.company_id.name}! + "${object.company_id.name | safe}" <${(object.company_id.email or user.email) | safe}> + ${object.email_formatted | safe} + + + + +
+ + + + + + + + + + + + + + + +
+ + + +
+ Your Account
+ + ${object.name} + +
+ ${object.company_id.name} +
+
+
+
+ + + +
+
+ Dear ${object.name},

+ Your account has been successfully created!
+ Your login is ${object.email}
+ To gain access to your account, you can use the following link: + + Thanks,
+ % if user.signature: +
+ ${user.signature | safe} + % endif +
+
+
+
+
+ + + +
+ ${object.company_id.name} +
+ ${object.company_id.phone} + % if object.company_id.email + | ${object.company_id.email} + % endif + % if object.company_id.website + | + ${object.company_id.website} + + % endif +
+
+
+ + +
+ Powered by Odoo +
+
+ ${object.lang} + +
+ +
+
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 00000000..b583d5e6 --- /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