summaryrefslogtreecommitdiff
path: root/addons/digest/data/digest_data.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/digest/data/digest_data.xml')
-rw-r--r--addons/digest/data/digest_data.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/digest/data/digest_data.xml b/addons/digest/data/digest_data.xml
index 67bd019bc00..80678308c79 100644
--- a/addons/digest/data/digest_data.xml
+++ b/addons/digest/data/digest_data.xml
@@ -53,4 +53,16 @@
</body>
</html>
</template>
+
+ <!-- DIGEST PART: PREFERENCES -->
+ <template id="digest_section_preferences">
+<p t-if="object._context.get('digest_slowdown')" class="font-12" style="font-size: 15px; color: #6b6d70">
+ We've noticed you did not connect these last few days so we've automatically switched your preference to weekly Digests.
+</p>
+<p t-elif="user.has_group('base.group_erp_manager') and object.periodicity == 'daily'" class="font-12" style="font-size: 15px; color: #6b6d70">
+ Prefer a broader overview ?
+ <a t-att-href="'/digest/%s/set_periodicity?periodicity=weekly' % object.id" target="_blank" style="color:#875A7B; font-weight: bold;">Switch to weekly Digests.</a>
+</p>
+<p t-else=""/>
+ </template>
</data></odoo>