123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="view_mail_inbox_search">
- <field name="name">mail.inbox.search</field>
- <field name="model">mail.inbox</field>
- <field name="arch" type="xml">
- <search string="Email Search">
- <field name="email_from" filter_domain="['|', '|',('email_from','ilike',self), ('email_to','ilike',self), ('subject','ilike',self)]" string="Email"/>
- <field name="date"/>
- <filter name="received" string="Received" domain="[('state','=','received')]"/>
- <filter name="outgoing" string="Outgoing" domain="[('state','=','outgoing')]"/>
- <filter name="sent" string="Sent" domain="[('state','=','sent')]"/>
- <filter name="exception" string="Failed" domain="[('state','=','exception')]"/>
- <separator/>
- <filter name="type_email" string="Email" domain="[('message_type','=','email')]"/>
- <filter name="type_comment" string="Comment" domain="[('message_type','=','comment')]"/>
- <filter name="type_notification" string="Notification" domain="[('message_type','=','notification')]"/>
- <group expand="0" string="Extended Filters...">
- <field name="author_id"/>
- <field name="recipient_ids"/>
- <field name="model"/>
- <field name="res_id"/>
- </group>
- <group expand="0" string="Group By">
- <filter string="Status" name="status" domain="[]" context="{'group_by':'state'}"/>
- <filter string="Author" name="author" context="{'group_by':'author_id'}"/>
- <filter string="Thread" name="thread" domain="[]" context="{'group_by':'message_id'}"/>
- <filter string="Month" name="month" help="Creation Month" domain="[]" context="{'group_by':'date'}"/>
- </group>
- </search>
- </field>
- </record>
- <record model="ir.ui.view" id="view_mail_inbox_tree">
- <field name="name">mail.inbox.tree</field>
- <field name="model">mail.inbox</field>
- <field name="arch" type="xml">
- <tree>
- <field name="date"/>
- <field name="create_uid"/>
- <field name="subject"/>
- <field name="author_id"/>
- <field name="partner_ids"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_mail_inbox_form">
- <field name="name">mail.inbox.form</field>
- <field name="model">mail.inbox</field>
- <field name="arch" type="xml">
- <form string="Message" edit="false">
- <header>
- <button name="send" string="Send Now" type="object" states='outgoing' class="oe_highlight"/>
- <button name="mark_outgoing" string="Retry" type="object" states='exception,cancel'/>
- <button name="cancel" string="Cancel" type="object" states='outgoing'/>
- <field name="state" widget="statusbar" statusbar_visible="outgoing,sent,received,exception,cancel"/>
- </header>
- <sheet>
- <div class="oe_title">
- <h1><field name="subject" placeholder="Subject..." required="True"/></h1>
- </div>
- <group col="8">
- <group colspan="8">
- <field name="partner_ids" widget="many2many_tags" invisible="1"/>
- <field name="email_to" required="True"/>
- <field name="email_cc"/>
- <field name="reply_to"/>
- <field name="template_id"
- domain="[('model_id.model','=','mail.inbox')]"
- context="{'default_model': 'mail.inbox', 'default_body_html': body_html, 'default_subject': subject, 'default_user_signature': True}"/>
- <field name="author_id" invisible="1"/>
- <field name="email_from" invisible="1"/>
- <field name="date" invisible="1"/>
- <field name="model" invisible="1"/>
- <field name="res_id" invisible="1"/>
- <field name="parent_id" invisible="1"/>
- <field name="subtype_id" invisible="1"/>
- </group>
- </group>
- <notebook>
- <page string="Body">
- <field name="body_html" widget="html" required="True"/>
- </page>
- <page string="Attachments">
- <field name="attachment_ids"/>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record id="action_mail_inbox" model="ir.actions.act_window">
- <field name="name">Inbox</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">mail.inbox</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="context">{}</field>
- <field name="domain">[('state', '=', 'inbox')]</field>
- <field name="search_view_id" ref="view_mail_inbox_search"/>
- </record>
- <record id="action_mail_draft" model="ir.actions.act_window">
- <field name="name">Draft</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">mail.inbox</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="context">{}</field>
- <field name="domain">[('state', '=', 'outgoing')]</field>
- <field name="search_view_id" ref="view_mail_inbox_search"/>
- </record>
- <record id="action_mail_outbox" model="ir.actions.act_window">
- <field name="name">Outbox</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">mail.inbox</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="context">{}</field>
- <field name="domain">['|',('state', '=', 'exception'),('state', '=', 'cancel')]</field>
- <field name="search_view_id" ref="view_mail_inbox_search"/>
- </record>
- <record id="action_mail_sent" model="ir.actions.act_window">
- <field name="name">Sent</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">mail.inbox</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="context">{}</field>
- <field name="domain">['|',('state', '=', 'sent'),('state', '=', 'received')]</field>
- <field name="search_view_id" ref="view_mail_inbox_search"/>
- </record>
- <menuitem name="Mails" id="menu_email_root"/>
- <menuitem id="menu_mails" name="Mails" parent="menu_email_root"/>
- <menuitem id="menu_mail_inbox" sequence="10" action="action_mail_inbox" parent="menu_mails" groups="base.group_user"/>
- <menuitem id="menu_mail_draft" sequence="20" action="action_mail_draft" parent="menu_mails" groups="base.group_user"/>
- <menuitem id="menu_mail_outbox" sequence="30" action="action_mail_outbox" parent="menu_mails" groups="base.group_user"/>
- <menuitem id="menu_mail_sent" sequence="40" action="action_mail_sent" parent="menu_mails" groups="base.group_user"/>
- </data>
- </openerp>
|