123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <odoo>
- <data>
- <!-- Group 1 -->
- <record id="mail_group_1" model="mail.group">
- <field name="name">My Company News</field>
- <field name="alias_name">newsletter</field>
- <field name="description">Receive news about "My Company"</field>
- <field name="moderation" eval="True"/>
- <field name="moderator_ids" eval="[(4, ref('base.user_admin'))]"/>
- <field name="access_mode">groups</field>
- <field name="access_group_id" ref="base.group_user"/>
- </record>
- <!-- Members of group 1 -->
- <record id="mail_group_member_1" model="mail.group.member">
- <field name="partner_id" ref="base.partner_admin"/>
- <field name="email">admin@yourcompany.example.com</field>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_member_2" model="mail.group.member">
- <field name="partner_id" ref="base.partner_demo"/>
- <field name="email">mark.brown23@example.com</field>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <!-- Attachment of messages -->
- <record id="ir_attachment_mail_group_message_1" model="ir.attachment">
- <field name="datas">U3VwZXIgc2VjcmV0IGF0dGFjaG1lbnQ=</field>
- <field name="name">attachment.txt</field>
- </record>
- <record id="ir_attachment_mail_group_message_2" model="ir.attachment">
- <field name="datas">QnV0IEphdmFzY3JpcHQgc3Vja3M=</field>
- <field name="name">attachment.txt</field>
- </record>
- <!-- Messages of group 1 -->
- <record id="mail_group_message_1" model="mail.group.message">
- <field name="subject">Important Announce</field>
- <field name="body">This weekend, you should all come to our barbecue!</field>
- <field name="email_from">mark.brown23@example.com</field>
- <field name="author_id" ref="base.partner_demo"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" eval="False"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- <field name="attachment_ids" eval="[(4, ref('ir_attachment_mail_group_message_1'))]"/>
- </record>
- <record id="mail_group_message_1_1" model="mail.group.message">
- <field name="subject">Re: Important Announce</field>
- <field name="body">Will there be vegetarian food?</field>
- <field name="email_from">admin@yourcompany.example.com</field>
- <field name="author_id" ref="base.partner_admin"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" ref="mail_group_message_1"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_1_1_1" model="mail.group.message">
- <field name="subject">Re: Important Announce</field>
- <field name="body">Yes of course, and for those who are allergic bring your own food</field>
- <field name="email_from">mark.brown23@example.com</field>
- <field name="author_id" ref="base.partner_demo"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" ref="mail_group_message_1_1"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_1_2" model="mail.group.message">
- <field name="subject">Re: Important Announce</field>
- <field name="body">Can I come with my dog ?</field>
- <field name="email_from">joel.willis63@example.com</field>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" ref="mail_group_message_1"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_1_2_1" model="mail.group.message">
- <field name="subject">Re: Important Announce</field>
- <field name="body">No animals please.</field>
- <field name="email_from">admin@yourcompany.example.com</field>
- <field name="author_id" ref="base.partner_admin"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" ref="mail_group_message_1_2"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_2" model="mail.group.message">
- <field name="subject">Recruitment</field>
- <field name="body">We are pleased to announce that we have hired 10 new people this month.</field>
- <field name="email_from">admin@yourcompany.example.com</field>
- <field name="author_id" ref="base.partner_admin"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" eval="False"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_3" model="mail.group.message">
- <field name="subject">Relocation</field>
- <field name="body">We are moving our office to Brussels. Take back all your remaining stuff.</field>
- <field name="email_from">admin@yourcompany.example.com</field>
- <field name="author_id" ref="base.partner_admin"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" eval="False"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_3_1" model="mail.group.message">
- <field name="subject">Re: Relocation</field>
- <field name="body">Is there a swimming pool in this new office?</field>
- <field name="email_from">joel.willis63@example.com</field>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" ref="mail_group_message_3"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_3_1_1" model="mail.group.message">
- <field name="subject">Re: Relocation</field>
- <field name="body">Of course!</field>
- <field name="email_from">admin@yourcompany.example.com</field>
- <field name="author_id" ref="base.partner_admin"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" ref="mail_group_message_3_1"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_3_2" model="mail.group.message">
- <field name="subject">Re: Relocation</field>
- <field name="body">What is the deadline for taking back my stuff?</field>
- <field name="email_from">mark.brown23@example.com</field>
- <field name="author_id" ref="base.partner_demo"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" ref="mail_group_message_3"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_3_2_1" model="mail.group.message">
- <field name="subject">Re: Relocation</field>
- <field name="body">In 4 weeks.</field>
- <field name="email_from">admin@yourcompany.example.com</field>
- <field name="author_id" ref="base.partner_admin"/>
- <field name="moderation_status">pending_moderation</field>
- <field name="group_message_parent_id" ref="mail_group_message_3_2"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- </record>
- <record id="mail_group_message_4" model="mail.group.message">
- <field name="subject">I really like CSS & HTML</field>
- <field name="body">
- <p style="margin:0px; font-size:13px;">Hi,</p><br> <p style="margin:0px; font-size:13px;"> We <u style="font-size:14px">really</u> like <font style="color:rgb(57, 123, 33); font-weight:bolder">colors</font> and <span style="font-weight:bolder"><font style="color:rgb(255, 0, 0)">CSS</font></span>. </p> <p style="margin:0px; font-size:13px;">Do you know you can add </p> <a href="https://example.com" target="_blank" class="btn btn-primary flat btn-sm">link in email</a> ? <ol> <li>Also image</li> <li>List</li> <li>Any HTML code in the end...</li> </ol>
- </field>
- <field name="email_from">admin@yourcompany.example.com</field>
- <field name="author_id" ref="base.partner_admin"/>
- <field name="moderation_status">pending_moderation</field>
- <field name="group_message_parent_id" eval="False"/>
- <field name="mail_group_id" ref="mail_group_1"/>
- <field name="attachment_ids" eval="[(4, ref('ir_attachment_mail_group_message_2'))]"/>
- </record>
- <!-- Group 2 -->
- <record id="mail_group_2" model="mail.group">
- <field name="name">Public Mailing List</field>
- <field name="alias_name">public_group</field>
- <field name="description">Get the patch notes of our amazing product.</field>
- <field name="moderation" eval="True"/>
- <field name="moderator_ids" eval="[(4, ref('base.user_admin'))]"/>
- </record>
- <!-- Message of Group 2 -->
- <record id="mail_group_message_5" model="mail.group.message">
- <field name="subject">Best patch ever</field>
- <field name="body">In this patch, we have cleaned the CSS!</field>
- <field name="email_from">mark.brown23@example.com</field>
- <field name="author_id" ref="base.partner_demo"/>
- <field name="moderation_status">accepted</field>
- <field name="group_message_parent_id" eval="False"/>
- <field name="mail_group_id" ref="mail_group_2"/>
- </record>
- </data>
- </odoo>
|