[FIX] mail: put the notification on the group *after* the definition of the group

bzr revid: rco@openerp.com-20120725133519-vd8ehps85cr77q5h
This commit is contained in:
Raphael Collet 2012-07-25 15:35:19 +02:00
parent 35f890ae5d
commit f5b6da1b46
2 changed files with 11 additions and 11 deletions

View File

@ -1,17 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- notify all employees of module installation -->
<function model="mail.group" name="message_append_note">
<!-- ids, subject, body, parent_id=False, type='notification', content_subtype='html' -->
<value eval="[ref('mail.group_all_employees')]"/>
<value>Module Social Network has been installed</value>
<value>Manage all communications on your documents (emails,
notifications, comments and discussions) and keep track of
news on documents you follow.
</value>
</function>
<record forcecreate="True" id="ir_cron_mail_scheduler_action" model="ir.cron">
<field name="name">Email Queue Manager</field>
<field name="user_id" ref="base.user_root"/>

View File

@ -14,5 +14,16 @@
<field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
</record>
<!-- notify all employees of module installation -->
<function model="mail.group" name="message_append_note">
<!-- ids, subject, body, parent_id=False, type='notification', content_subtype='html' -->
<value eval="[ref('mail.group_all_employees')]"/>
<value>Module Social Network has been installed</value>
<value>Manage all communications on your documents (emails,
notifications, comments and discussions) and keep track of
news on documents you follow.
</value>
</function>
</data>
</openerp>