summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_channel_data.xml
diff options
context:
space:
mode:
authorNidhi Patel <nia@odoo.com>2020-04-08 08:51:21 +0000
committerAlexandre Kühn <aku@odoo.com>2020-06-08 09:36:25 +0000
commit91029b2b32dbd94292a9db06e2a8fd9c248d2df8 (patch)
treea8a51fca6eebb1020974f37ade63e2f53f5d54d0 /addons/mail/data/mail_channel_data.xml
parentc9f93eb6396159a4fd46e9767c075d6e28f888d6 (diff)
[FIX] mail: channel `#general` with default messages
Before this commit, when starting a new database with demo data, the default channel `#general` had no messages initially. The demo data defines default messages in this channel, but were incorrectly linked to this channel, resulting in this channel containing no messages initially. The messages did not define `channel_ids`, so it was considered empty. This field is essential for displaying the message in channel, so by being omitted these messages are not properly linked to channels. This commit fixes the issue by correctly linked this demo messages to this demo channel, so that `#general` now contains some messages initially. This commit also removes unused context `mail_notify_noemail`. Task-Id 2186300 closes odoo/odoo#49539 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/data/mail_channel_data.xml')
-rw-r--r--addons/mail/data/mail_channel_data.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/data/mail_channel_data.xml b/addons/mail/data/mail_channel_data.xml
index 12d94b8e3e6..1f6a89308c2 100644
--- a/addons/mail/data/mail_channel_data.xml
+++ b/addons/mail/data/mail_channel_data.xml
@@ -9,9 +9,10 @@
</record>
<!-- notify all employees of module installation -->
- <record model="mail.message" id="module_install_notification" context="{'mail_notify_noemail': True}">
+ <record model="mail.message" id="module_install_notification">
<field name="model">mail.channel</field>
<field name="res_id" ref="mail.channel_all_employees"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_all_employees'))]"/>
<field name="message_type">email</field>
<field name="subtype_id" ref="mail.mt_comment"/>
<field name="subject">Welcome to Odoo!</field>