Files
odoo_source/addons/mail/data/mail_channel_data.xml
T
Géry Debongnie 2a80f0a850 [FIX] mail,crm: fix automatic notification emails
They need to have the message_type 'email' instead of 'notification', so
they can be starred in the interface.
2015-10-22 14:43:14 +02:00

24 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<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" context="{'mail_notify_noemail': True}">
<field name="model">mail.channel</field>
<field name="res_id" 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>Your homepage is a summary of messages you received and key information about documents you follow.</p>
<p>The top menu bar contains all applications you installed. You can use the <i>Settings</i> menu to install more applications, activate other features or give access to new users.</p>
<p>To setup your preferences (name, email signature, avatar), click on the top right corner.</p>]]></field>
</record>
</data>
</openerp>