summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_channel_data.xml
diff options
context:
space:
mode:
authorDhruv Patel <dhp@odoo.com>2021-02-03 06:59:31 +0000
committerDhruv Patel <dhp@odoo.com>2021-02-05 05:15:35 +0000
commitf71ad8c93d978a3d219cf23e27401a23f411f565 (patch)
tree639984a0571f7e513c2ebd5b864ac11db256fec2 /addons/mail/data/mail_channel_data.xml
parenta705dc87f1ff06f7076793b4bf2ffb504e2d6859 (diff)
[IMP] mail: mark first welcome message as read for the admin
Actually, We don't want to distract the admin with an unnecessary notification on General Channel. The main focus should be on odoobot's tour, not on the general channel's welcome message. And it is also not a good idea to remove the general channel as it would reduce the discoverability of the feature. So, we are marking the first message as read for at least admin user. therefore admin can not distract over unnecessary welcome notification and focus more on the rest of the functionality. Task : 2442023 closes odoo/odoo#65440 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/data/mail_channel_data.xml')
-rw-r--r--addons/mail/data/mail_channel_data.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/addons/mail/data/mail_channel_data.xml b/addons/mail/data/mail_channel_data.xml
index 1f6a89308c2..84d83e761c0 100644
--- a/addons/mail/data/mail_channel_data.xml
+++ b/addons/mail/data/mail_channel_data.xml
@@ -4,7 +4,6 @@
<record model="mail.channel" id="channel_all_employees">
<field name="name">general</field>
- <field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="description">General announcements for all employees.</field>
</record>
@@ -19,5 +18,16 @@
<field name="body"><![CDATA[<p>Welcome to the #general channel.</p>
<p>This channel is accessible to all users to <b>easily share company information</b>.</p>]]></field>
</record>
+
+ <record model="mail.channel.partner" id="channel_partner_general_channel_for_admin">
+ <field name="partner_id" ref="base.partner_admin"/>
+ <field name="channel_id" ref="mail.channel_all_employees"/>
+ <field name="fetched_message_id" ref="mail.module_install_notification"/>
+ <field name="seen_message_id" ref="mail.module_install_notification"/>
+ </record>
+
+ <record model="mail.channel" id="mail.channel_all_employees">
+ <field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
+ </record>
</data>
</odoo>