summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_channel_data.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/mail/data/mail_channel_data.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/mail/data/mail_channel_data.xml')
-rw-r--r--addons/mail/data/mail_channel_data.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/addons/mail/data/mail_channel_data.xml b/addons/mail/data/mail_channel_data.xml
new file mode 100644
index 00000000..84d83e76
--- /dev/null
+++ b/addons/mail/data/mail_channel_data.xml
@@ -0,0 +1,33 @@
+<?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="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>
+
+ <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>