summaryrefslogtreecommitdiff
path: root/addons/mail/data
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-05-29 10:22:20 +0200
committerThibault Delavallée <tde@openerp.com>2015-07-09 11:12:50 +0200
commit2c36354ca9c3939cc222e4fdad4adba6d3c0e315 (patch)
tree715738733d34bf049299495397c357609c4a29ef /addons/mail/data
parenta316295e36f7c994facfee5b13f1704812a91244 (diff)
[RENAME] mail, website_mail, website_mail_group, various: mail.group
model has been renamed to mail.channel to prepare the slack modeling. In future commits the mail.group model will be merged with the channel model from im_chat. The first move is to rename mail.group into mail.channel to have a model that will unite both features.
Diffstat (limited to 'addons/mail/data')
-rw-r--r--addons/mail/data/mail_channel_data.xml6
-rw-r--r--addons/mail/data/mail_channel_demo.xml56
2 files changed, 31 insertions, 31 deletions
diff --git a/addons/mail/data/mail_channel_data.xml b/addons/mail/data/mail_channel_data.xml
index c5c9a0337a1..f71cfe495b8 100644
--- a/addons/mail/data/mail_channel_data.xml
+++ b/addons/mail/data/mail_channel_data.xml
@@ -2,7 +2,7 @@
<openerp>
<data noupdate="1">
- <record model="mail.group" id="group_all_employees">
+ <record model="mail.channel" id="channel_all_employees">
<field name="name">Whole Company</field>
<field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="description">General announces for all employees.</field>
@@ -10,8 +10,8 @@
<!-- notify all employees of module installation -->
<record model="mail.message" id="module_install_notification" context="{'mail_notify_noemail': True}">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_all_employees"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_all_employees"/>
<field name="message_type">notification</field>
<field name="subtype_id" ref="mail.mt_comment"/>
<field name="subject">Welcome to Odoo!</field>
diff --git a/addons/mail/data/mail_channel_demo.xml b/addons/mail/data/mail_channel_demo.xml
index 1237fcaea4f..375c2424076 100644
--- a/addons/mail/data/mail_channel_demo.xml
+++ b/addons/mail/data/mail_channel_demo.xml
@@ -3,40 +3,40 @@
<data noupdate="1">
<!-- Discussion groups, done in 2 steps to remove creator from followers -->
- <record model="mail.group" id="group_best_sales_practices">
+ <record model="mail.channel" id="channel_best_sales_practices">
<field name="name">Best Sales Practices</field>
<field name="description">Discussion about best sales practices and deals.</field>
</record>
- <record model="mail.group" id="group_best_sales_practices">
+ <record model="mail.channel" id="channel_best_sales_practices">
<field name="message_follower_ids" eval="[(6, 0, [ref('base.partner_demo')])]"/>
</record>
- <record model="mail.group" id="group_board">
+ <record model="mail.channel" id="channel_board">
<field name="name">Board meetings</field>
<field name="description">Board meetings, budgets, strategic plans</field>
</record>
- <record model="mail.group" id="group_board">
+ <record model="mail.channel" id="channel_board">
<field name="message_follower_ids" eval="[(6, 0, [])]"/>
</record>
- <record model="mail.group" id="group_rd">
+ <record model="mail.channel" id="channel_rd">
<field name="name">R&amp;D</field>
<field name="description">Research and development discussion group</field>
</record>
- <record model="mail.group" id="group_hr_policies">
+ <record model="mail.channel" id="channel_hr_policies">
<field name="name">HR Policies</field>
<field name="description">Company cars, holidays and other advantages</field>
</record>
- <record model="mail.group" id="group_rd">
+ <record model="mail.channel" id="channel_rd">
<field name="message_follower_ids" eval="[(6, 0, [])]"/>
</record>
- <record model="mail.group" id="group_support">
+ <record model="mail.channel" id="channel_support">
<field name="name">Support</field>
<field name="description">Support team</field>
</record>
<!-- Best sales practices messages -->
<record id="msg_group_1_1" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_best_sales_practices"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_best_sales_practices"/>
<field name="body"><![CDATA[<p>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.</p>]]></field>
<field name="message_type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
@@ -44,8 +44,8 @@
<field name="date" eval="(DateTime.today() - timedelta(days=5)).strftime('%Y-%m-%d %H:%M')"/>
</record>
<record id="msg_group_1_2" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_best_sales_practices"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_best_sales_practices"/>
<field name="body"><![CDATA[<p>I noted I can not manage efficiently my pipeline when I have more than 50 opportunities in the qualification stage.</p><p>Any advice on this? How do you organize your activities with more than 50 opportunities?</p>]]></field>
<field name="message_type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
@@ -53,8 +53,8 @@
<field name="date" eval="(DateTime.today() - timedelta(days=4)).strftime('%Y-%m-%d %H:%M')"/>
</record>
<record id="msg_group_1_3" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_best_sales_practices"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_best_sales_practices"/>
<field name="body"><![CDATA[<p>When I have too much opportunities in the pipe, I start communicating with prospects more by email than phonecalls.</p><p>I send an email to create a sense of emergency, like <i>"can I call you this week about our quote?"</i> and I call only those that answer this email.</p><p>You can use the email template feature of Odoo to automate email composition.</p>]]></field>
<field name="message_type">comment</field>
<field name="parent_id" ref="msg_group_1_2"/>
@@ -64,8 +64,8 @@
<field name="date" eval="(DateTime.today() - timedelta(days=3)).strftime('%Y-%m-%d %H:%M')"/>
</record>
<record id="msg_group_1_4" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_best_sales_practices"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_best_sales_practices"/>
<field name="body"><![CDATA[<p>When you sell a tablet PC, don't forget to propose a docking station with it. I offer 20% on the docking stating (not the tablet) and I have a 70% success rate with this combo.</p>]]></field>
<field name="message_type">comment</field>
<field name="subtype_id" ref="mt_comment"/>
@@ -76,16 +76,16 @@
<!-- Pushed to all employees -->
<record id="msg_empl_1" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_hr_policies"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_hr_policies"/>
<field name="body"><![CDATA[<p>Your monthly meal vouchers arrived. You can get them at the HR's office.</p>]]></field>
<field name="message_type">comment</field>
<field name="author_id" ref="base.partner_demo"/>
<field name="date" eval="(DateTime.today() - timedelta(hours=1)).strftime('%Y-%m-%d %H:%M')"/>
</record>
<record id="msg_empl_1_1" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="group_hr_policies"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="channel_hr_policies"/>
<field name="body"><![CDATA[<p>Oh, I had forgotten. This month you also get 250 EUR of eco-vouchers if you have been in the company for more than a year.</p>]]></field>
<field name="parent_id" ref="msg_empl_1"/>
<field name="message_type">comment</field>
@@ -93,8 +93,8 @@
<field name="date" eval="(DateTime.today() - timedelta(minutes=57)).strftime('%Y-%m-%d %H:%M')"/>
</record>
<record id="msg_empl_1_2" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="group_hr_policies"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="channel_hr_policies"/>
<field name="body"><![CDATA[<p>Thanks! Could you please remind me where is Christine's office, if I may ask? I'm new here!</p>]]></field>
<field name="parent_id" ref="msg_empl_1"/>
<field name="message_type">comment</field>
@@ -102,8 +102,8 @@
<field name="date" eval="(DateTime.today() - timedelta(minutes=34)).strftime('%Y-%m-%d %H:%M')"/>
</record>
<record id="msg_empl_1_3" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="group_hr_policies"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="channel_hr_policies"/>
<field name="body"><![CDATA[<p>Building B3, second floor on the right :-).</p>]]></field>
<field name="parent_id" ref="msg_empl_1"/>
<field name="message_type">comment</field>
@@ -113,8 +113,8 @@
<!-- Board messages -->
<record id="msg_board_1" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_board"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_board"/>
<field name="body"><![CDATA[
<p>
Dear Board Members,
@@ -176,8 +176,8 @@
<!-- Whole Company messages -->
<record id="msg_whole_1_1" model="mail.message">
- <field name="model">mail.group</field>
- <field name="res_id" ref="mail.group_all_employees"/>
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_all_employees"/>
<field name="body"><![CDATA[
<p>
Great news!<br/>