summaryrefslogtreecommitdiff
path: root/addons/digest/models
diff options
context:
space:
mode:
authorAnousone Phaysomphot <aph@odoo.com>2020-06-16 08:53:49 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-12 12:22:57 +0000
commitfd8709515cac4f913c5ccee57009355dc58bca81 (patch)
treeac3987547d18383822827f62cb12872d5b7186d5 /addons/digest/models
parentd9bbf1db4bb88498fe74083a86a0f5a91e863396 (diff)
[IMP] digest: improve digest layout and add new digest tips
PURPOSE Review the tips and digest layout design to make sure they have a WOW effect and increase trial conversion/retention. SPECIFICATIONS: LAYOUT Besides changing the tips, a cleaning of digest layout was performed. Emails were reported to look not neat in Outlook and somewhat random in mail.com or gmail.com. Most recent HTML CSS cannot be used to make HTML emails because each email provider renders emails its own way. This means a given email may renders differently in gmail.com and outlook. The layout of the email was composed of several levels of embedded tables which means huge maintenance effort. So it was totally rewritten with divs and CSS, but some properties are not taken into account. A lot of page component improvements were done. It consisted in replacing most of the style attribute in tags with CSS classes and ids. This step is especially useful for tip formatting because before, if a style modification was needed, it had to be performed on each tip individually. SPECIFICATIONS: TIPS “Speed up your workflow with shortcuts” “Click on an avatar to chat with a user” “A calculator in Odoo” “How to ping users in internal notes?” “Knowledge is power” LINKS Task ID-2274264 COM PR: odoo/odoo#53580 ENT PR: odoo/enterprise#1139 X-original-commit: 04aa36da30c107e482935b1673374c9302e4cf6a
Diffstat (limited to 'addons/digest/models')
-rw-r--r--addons/digest/models/digest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/digest/models/digest.py b/addons/digest/models/digest.py
index a206906121c..5576d3c58ad 100644
--- a/addons/digest/models/digest.py
+++ b/addons/digest/models/digest.py
@@ -257,13 +257,13 @@ class Digest(models.Model):
if self._context.get('digest_slowdown'):
preferences.append(_("We have noticed you did not connect these last few days so we've automatically switched your preference to weekly Digests."))
elif self.periodicity == 'daily' and user.has_group('base.group_erp_manager'):
- preferences.append('%s <a href="/digest/%s/set_periodicity?periodicity=weekly" target="_blank" style="color:#875A7B; font-weight: bold;">%s</a>' % (
+ preferences.append('%s <p><a href="/digest/%s/set_periodicity?periodicity=weekly" target="_blank" style="color:#875A7B; font-weight: bold;">%s</a></p>' % (
_('Prefer a broader overview ?'),
self.id,
_('Switch to weekly Digests')
))
if user.has_group('base.group_erp_manager'):
- preferences.append('%s <a href="/web#view_type=form&amp;model=%s&amp;id=%s" target="_blank" style="color:#875A7B; font-weight: bold;">%s</a>' % (
+ preferences.append('%s <p><a href="/web#view_type=form&amp;model=%s&amp;id=%s" target="_blank" style="color:#875A7B; font-weight: bold;">%s</a></p>' % (
_('Want to customize this email?'),
self._name,
self.id,