4 <record model="ir.ui.view" id="view_mail_form">
5 <field name="name">mail.mail.form</field>
6 <field name="model">mail.mail</field>
7 <field name="arch" type="xml">
8 <form string="Email message" version="7.0">
10 <button name="send" string="Send Now" type="object" states='outgoing' class="oe_highlight"/>
11 <button name="mark_outgoing" string="Retry" type="object" states='exception,cancel'/>
12 <button name="cancel" string="Cancel" type="object" states='outgoing'/>
15 <label for="subject" class="oe_edit_only"/>
16 <h2><field name="subject"/></h2>
18 by <field name="author_id" class="oe_inline" string="User"/> on <field name="date" class="oe_inline"/>
19 <button name="%(action_email_compose_message_wizard)d" string="Reply" type="action" icon="terp-mail-replied"
20 context="{'default_composition_mode':'reply', 'default_parent_id': active_id}" states='received,sent,exception,cancel'/>
23 <field name="email_from"/>
24 <field name="email_to"/>
25 <field name="recipient_ids" widget="many2many_tags"/>
26 <field name="email_cc"/>
27 <field name="reply_to"/>
31 <field name="body_html"/>
33 <page string="Advanced" groups="base.group_no_one">
36 <field name="auto_delete"/>
39 <field name="mail_server_id"/>
41 <field name="res_id"/>
44 <field name="message_id"/>
45 <field name="references"/>
46 <field name="partner_ids" widget="many2many_tags"/>
47 <field name="notified_partner_ids" widget="many2many_tags"/>
51 <page string="Attachments">
52 <field name="attachment_ids"/>
60 <record model="ir.ui.view" id="view_mail_tree">
61 <field name="name">mail.mail.tree</field>
62 <field name="model">mail.mail</field>
63 <field name="arch" type="xml">
64 <tree string="Emails" colors="grey:state in ('sent', 'cancel');blue:state=='outgoing';red:state=='exception';black:state=='received'">
66 <field name="subject"/>
67 <field name="author_id" string="User"/>
68 <field name="message_id" invisible="1"/>
69 <field name="recipient_ids" invisible="1"/>
70 <field name="model" invisible="1"/>
71 <field name="res_id" invisible="1"/>
72 <field name="email_from" invisible="1"/>
73 <field name="state" invisible="1"/>
74 <field name="type" invisible="1"/>
75 <button name="send" string="Send Now" type="object" icon="gtk-media-play" states='outgoing'/>
76 <button name="mark_outgoing" string="Retry" type="object" icon="gtk-redo" states='exception,cancel'/>
77 <button name="cancel" string="Cancel Email" type="object" icon="terp-gtk-stop" states='outgoing'/>
82 <record model="ir.ui.view" id="view_mail_search">
83 <field name="name">mail.mail.search</field>
84 <field name="model">mail.mail</field>
85 <field name="arch" type="xml">
86 <search string="Email Search">
87 <field name="email_from" filter_domain="['|' '|',('email_from','ilike',self), ('email_to','ilike',self), ('subject','ilike',self)]" string="Email"/>
89 <filter icon="terp-camera_test" name="received" string="Received" domain="[('state','=','received')]"/>
90 <filter icon="terp-call-start" name="outgoing" string="Outgoing" domain="[('state','=','outgoing')]"/>
91 <filter icon="terp-check" name="sent" string="Sent" domain="[('state','=','sent')]"/>
92 <filter icon="terp-gtk-stop" name="exception" string="Failed" domain="[('state','=','exception')]"/>
94 <filter icon="terp-camera_test" name="type_email" string="Email" domain="[('type','=','email')]"/>
95 <filter icon="terp-camera_test" name="type_comment" string="Comment" domain="[('type','=','comment')]"/>
96 <filter icon="terp-camera_test" name="type_notification" string="Notification" domain="[('type','=','notification')]"/>
97 <group expand="0" string="Extended Filters...">
98 <field name="author_id"/>
99 <field name="recipient_ids"/>
100 <field name="model"/>
101 <field name="res_id"/>
103 <group expand="0" string="Group By...">
104 <filter string="Status" name="status" domain="[]" context="{'group_by':'state'}"/>
105 <filter string="Author" name="author" context="{'group_by':'author_id'}"/>
106 <filter string="Thread" name="thread" domain="[]" context="{'group_by':'message_id'}"/>
107 <filter string="Month" name="month" help="Creation Month" domain="[]" context="{'group_by':'date'}"/>
113 <record id="action_view_mail_mail" model="ir.actions.act_window">
114 <field name="name">Emails</field>
115 <field name="res_model">mail.mail</field>
116 <field name="view_type">form</field>
117 <field name="view_mode">tree,form</field>
118 <field name="context">{'search_default_outgoing': 1}</field>
119 <field name="search_view_id" ref="view_mail_search"/>
122 <!-- Add menu entry in Settings/Email -->
123 <menuitem name="Emails" id="menu_mail_mail" parent="base.menu_email" action="action_view_mail_mail" />