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>
24 lines
1.1 KiB
XML
24 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<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>
|
|
|
|
<!-- notify all employees of module installation -->
|
|
<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>
|
|
<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>
|
|
</data>
|
|
</odoo>
|