From 23a4adc1995174347df30208dff9f0426d6444bf Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Tue, 24 Nov 2015 13:32:00 +0100 Subject: [PATCH] [ADD] project,crm,website_mail: Email template to send on email installation --- addons/crm/__openerp__.py | 1 + addons/crm/crm_mail_template_data.xml | 122 +++++++++++++++++ addons/project/__openerp__.py | 1 + addons/project/project_data.xml | 1 + addons/project/project_mail_template_data.xml | 123 ++++++++++++++++++ addons/web_planner/models/web_planner.py | 4 + addons/website_mail/data/mail_channels.xml | 123 ++++++++++++++++++ 7 files changed, 375 insertions(+) create mode 100644 addons/crm/crm_mail_template_data.xml create mode 100644 addons/project/project_mail_template_data.xml diff --git a/addons/crm/__openerp__.py b/addons/crm/__openerp__.py index b45915b06b8..271422a60dd 100644 --- a/addons/crm/__openerp__.py +++ b/addons/crm/__openerp__.py @@ -76,6 +76,7 @@ Dashboard for CRM will include: 'views/crm.xml', 'web_planner_data.xml', 'sales_team_dashboard.xml', + 'crm_mail_template_data.xml' ], 'demo': [ 'data/crm_stage_demo.xml', diff --git a/addons/crm/crm_mail_template_data.xml b/addons/crm/crm_mail_template_data.xml new file mode 100644 index 00000000000..a273d7fc419 --- /dev/null +++ b/addons/crm/crm_mail_template_data.xml @@ -0,0 +1,122 @@ + + + + + Email send after crm installation. + Your Odoo CRM application is running smoothly. + help@odoo.com + ${user.email|safe} + ${user.lang} + + + ${(datetime.datetime.now() + relativedelta(days=2)).strftime('%Y-%m-%d %H:%M')} + + + + + + + + +
+ + + Auto Login +
+ + + + + + +
+

Hooray!


+

+ Your Odoo CRM application is up and running


+

+ What’s next?

+
+

+ Discover the + + CRM planner + to activate extra features + (${user.env['web.planner'].get_planner_progress('planner_crm')}% done) +

+
    +
  • +

    + Automatically assign your leads to your salesmen with the lead scoring, +

    +
  • +
  • +

    + Keep in touch with your potential client with efficient email campaigns, +

    +
  • +
  • +

    + Gain high quality insight from surveys, +

    +
  • +
  • +

    + Get smart reporting and accurate dashboards, +

    +
  • +
  • +

    + And much more... +

    +
  • +
+
+

+ Need Help? + You’re not alone +

+

+ We would be delighted to assist you along the way. Contact us at + + help@odoo.com if you have any question. You can also discover + how to get the best out of Odoo CRM with our + + User Documentation + or with our + + API Documentation +

+
+

Enjoy your Odoo experience,

+
+
+
--
The Odoo Team
PS: People love Odoo, check
what they say about it. +
+ ]]>
+
+ + + +
+
\ No newline at end of file diff --git a/addons/project/__openerp__.py b/addons/project/__openerp__.py index 7c022385cb0..c463f2e50d1 100644 --- a/addons/project/__openerp__.py +++ b/addons/project/__openerp__.py @@ -47,6 +47,7 @@ Dashboard / Reports for Project Management will include: 'project_tip_data.xml', 'project_dashboard.xml', 'web_planner_data.xml', + 'project_mail_template_data.xml', ], 'qweb': ['static/src/xml/project.xml'], 'demo': ['project_demo.xml'], diff --git a/addons/project/project_data.xml b/addons/project/project_data.xml index c1d87077064..a10931c50e5 100644 --- a/addons/project/project_data.xml +++ b/addons/project/project_data.xml @@ -331,4 +331,5 @@ + diff --git a/addons/project/project_mail_template_data.xml b/addons/project/project_mail_template_data.xml new file mode 100644 index 00000000000..04f6db49c4e --- /dev/null +++ b/addons/project/project_mail_template_data.xml @@ -0,0 +1,123 @@ + + + + + project module install then send email + Your Odoo Project application is up and running + help@odoo.com + ${user.email|safe} + ${user.lang} + + + ${(datetime.datetime.now() + relativedelta(days=3)).strftime('%Y-%m-%d %H:%M')} + + + + + + + + +
+ + + Auto Login +
+ + + + + + +
+

Hooray!


+

+ Your Odoo Project application is up and running


+

+ What’s next?

+
+

+ Discover the + + project planner + to activate extra features + (${user.env['web.planner'].get_planner_progress('planner_project')}% done) +

+
    +
  • +

    + Track hours with timesheets, +

    +
  • +
  • +

    + Plan tasks and resources with forecasts, +

    +
  • +
  • +

    + Get smart reporting and accurate dashboards, +

    +
  • +
  • +

    + Bill time on tasks or issues, +

    +
  • +
  • +

    + And much more... +

    +
  • +
+
+

+ Need Help? + You’re not alone +

+

+ We would be delighted to assist you along the way. Contact us at + + help@odoo.com if you have any question. You can also discover + how to get the best out of Odoo Project with our + + User Documentation + or with our + + API Documentation +

+
+

Enjoy your Odoo experience,

+
+
+
--
The Odoo Team
PS: People love Odoo, check
what they say about it. +
+ ]]>
+
+ + +
+
diff --git a/addons/web_planner/models/web_planner.py b/addons/web_planner/models/web_planner.py index ff5e692fe55..d96ad31bfe8 100644 --- a/addons/web_planner/models/web_planner.py +++ b/addons/web_planner/models/web_planner.py @@ -70,3 +70,7 @@ class Planner(models.Model): @api.model def is_module_installed(self, module_name=None): return module_name in self.env['ir.module.module']._installed() + + @api.model + def get_planner_progress(self, planner_application): + return self.search([('planner_application', '=', planner_application)]).progress diff --git a/addons/website_mail/data/mail_channels.xml b/addons/website_mail/data/mail_channels.xml index 8ab39125b01..f5d3f10d822 100644 --- a/addons/website_mail/data/mail_channels.xml +++ b/addons/website_mail/data/mail_channels.xml @@ -8,5 +8,128 @@ Public Discussion Group + + + website module install then send email + Your business is reachable from anywhere, anytime ! + help@odoo.com + ${user.email|safe} + ${user.lang} + + + ${(datetime.datetime.now() + relativedelta(days=1)).strftime('%Y-%m-%d %H:%M')} + + + + + + + + +
+ + + Auto Login +
+ + + + + + +
+

Awesome!


+

+ Your website is now online !


+

+ Did you know ?

+
    +
  • +

    + Enhance your online business with astonishing apps like : Forum, Blog, e-Commerce, Events, online jobs... +

    +
  • +
  • +

    + Customize the look of your website with our + magnificent themes + to easily create a unique website. +

    +
  • +

+

+ Discover the + + Website planner + to activate extra features + (${user.env['web.planner'].get_planner_progress('planner_website')}% done) +

+
    +
  • +

    + Grow your traffic by optimizing your referencing with our SEO tool, +

    +
  • +
  • +

    + Test different versions of a page to perform better in reaching your business objectives, +

    +
  • +
  • +

    + Improve your conversion from visitor to customer with the Website Live support, +

    +
  • +
  • +

    + Broaden your audience by translating your website automatically with Gengo, +

    +
  • +
  • +

    + Go further into the customizing with our advanced HTML editor, +

    +
  • +
  • +

    + And much more... +

    +
  • +
+
+

+ Need Help? + You’re not alone +

+

+ We would be delighted to assist you along the way. Contact us at + + help@odoo.com if you have any question. You can also discover + how to get the best out of Odoo with our + + User Documentation + or with our + + API Documentation +

+
+

Enjoy your Odoo experience,

+
+
+
--
The Odoo Team
PS: People love Odoo, check
what they say about it. +
+ ]]>
+
+ + + + + +