From 91029b2b32dbd94292a9db06e2a8fd9c248d2df8 Mon Sep 17 00:00:00 2001
From: Nidhi Patel
Date: Wed, 8 Apr 2020 08:51:21 +0000
Subject: [PATCH] [FIX] mail: channel `#general` with default messages
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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)
---
addons/mail/data/mail_channel_data.xml | 3 ++-
addons/mail/data/mail_channel_demo.xml | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
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 @@
-
+
mail.channel
+
email
Welcome to Odoo!
diff --git a/addons/mail/data/mail_channel_demo.xml b/addons/mail/data/mail_channel_demo.xml
index 063e462c637..d0965bae8d5 100644
--- a/addons/mail/data/mail_channel_demo.xml
+++ b/addons/mail/data/mail_channel_demo.xml
@@ -23,6 +23,7 @@
Selling a training session and selling the products after the training session is more efficient than directly selling a pack with the training session and the products.
]]>
comment
+
@@ -32,6 +33,7 @@
I noted I can not manage efficiently my pipeline when I have more than 50 opportunities in the qualification stage.Any advice on this? How do you organize your activities with more than 50 opportunities?
]]>
comment
+
@@ -42,6 +44,7 @@
comment
+
@@ -50,6 +53,7 @@
mail.channel
+
Great news!
@@ -65,6 +69,7 @@
mail.channel
+
Your monthly meal vouchers arrived. You can get them at the HR's office.
This month you also get 250 EUR of eco-vouchers if you have been in the company for more than a year.
]]>
comment
@@ -74,6 +79,7 @@
mail.channel
+
Thanks! Could you please remind me where is Christine's office, if I may ask? I'm new here!]]>
comment
@@ -83,6 +89,7 @@
mail.channel
+
Building B3, second floor on the right :-).]]>
comment
@@ -147,6 +154,7 @@
]]>
comment
+