2011-02-02 08:40:29 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2011-02-03 11:28:31 +00:00
|
|
|
<menuitem name="Configuration" parent="base.menu_tools"
|
2011-02-17 10:58:44 +00:00
|
|
|
id="base.menu_lunch_survey_root" sequence="20"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_email_message_form">
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="name">email.message.form</field>
|
|
|
|
<field name="model">email.message</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Email message">
|
2011-02-02 08:40:29 +00:00
|
|
|
<group colspan="4" col="6">
|
2011-02-15 12:18:13 +00:00
|
|
|
<field name="name" widget="char" size="512"/>
|
2011-02-09 07:00:09 +00:00
|
|
|
<field name="date"/>
|
2011-02-15 12:51:14 +00:00
|
|
|
<field name="user_id" string="User"/>
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="partner_id" readonly="1" />
|
2011-02-02 08:40:29 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Details">
|
|
|
|
<group col="2" colspan="2">
|
|
|
|
<separator string="Email Followers" colspan="4"/>
|
2011-02-28 12:45:47 +00:00
|
|
|
<field name="email_from"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<field name="email_to"/>
|
|
|
|
<field name="email_cc"/>
|
|
|
|
<field name="email_bcc" groups="base.group_extended"/>
|
|
|
|
<field name="reply_to"/>
|
2011-02-08 05:43:39 +00:00
|
|
|
</group>
|
|
|
|
<group col="2" colspan="2">
|
2011-02-02 08:40:29 +00:00
|
|
|
<separator string="Message Details" colspan="4"/>
|
|
|
|
<field name="model" readonly="1"/>
|
|
|
|
<group col="3" colspan="2">
|
2011-02-18 10:27:48 +00:00
|
|
|
<field name="res_id" readonly="1"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<button name="open_document" string="Open Document" type="object" icon="gtk-jump-to"/>
|
2011-02-08 11:13:08 +00:00
|
|
|
<field name="message_id"/>
|
2011-02-21 09:54:01 +00:00
|
|
|
<button name="%(action_email_compose_message_wizard)d" string="Reply" type="action" icon="terp-mail-replied"
|
2011-02-18 10:27:48 +00:00
|
|
|
context="{'mail':'reply', 'message_id':active_id}"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
</group>
|
2011-02-23 12:22:28 +00:00
|
|
|
<field name="references" widget="char" size="4096"/>
|
2011-02-08 05:43:39 +00:00
|
|
|
</group>
|
2011-02-08 10:46:03 +00:00
|
|
|
<separator string="Description" colspan="4"/>
|
|
|
|
<field name="description" nolabel="1" colspan="4"/>
|
2011-02-15 07:52:32 +00:00
|
|
|
<group col="4" colspan="4" attrs="{'invisible':[('folder','not in',['drafts','outbox'])]}">
|
|
|
|
<separator string="" colspan="4"/>
|
|
|
|
<field name="state"/>
|
2011-03-18 13:44:19 +00:00
|
|
|
<!--<button name="process_queue" string="Send" type="object" icon="gtk-execute" states='draft,waiting,sending'/>-->
|
2011-02-15 07:52:32 +00:00
|
|
|
<button name="process_retry" string="Re-Try" type="object" icon="gtk-execute" states='exception'/>
|
|
|
|
</group>
|
2011-02-02 08:40:29 +00:00
|
|
|
</page>
|
|
|
|
<page string="Attachments">
|
|
|
|
<separator string="Attachments" colspan="4"/>
|
|
|
|
<field name="attachment_ids" nolabel="1" colspan="4" readonly="1"/>
|
|
|
|
</page>
|
|
|
|
<page string="Advanced">
|
2011-02-08 11:13:08 +00:00
|
|
|
<group col="4" colspan="4">
|
2011-03-03 08:41:32 +00:00
|
|
|
<field name="smtp_server_id"/>
|
2011-02-08 11:13:08 +00:00
|
|
|
<field name="folder"/>
|
|
|
|
<field name="sub_type"/>
|
|
|
|
<field name="headers"/>
|
|
|
|
<field name="priority"/>
|
|
|
|
<field name="debug"/>
|
|
|
|
<field name="history"/>
|
|
|
|
</group>
|
2011-02-02 08:40:29 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_email_message_tree">
|
|
|
|
<field name="name">email.message.tree</field>
|
|
|
|
<field name="model">email.message</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-02-28 12:11:07 +00:00
|
|
|
<tree colors="gray:folder in ('trash')" string="Emails">
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="date"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="email_from"/>
|
2011-02-15 12:51:14 +00:00
|
|
|
<field name="user_id" string="User"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<field name="message_id" string="Message" invisible="1"/>
|
|
|
|
<field name="partner_id" invisible="1"/>
|
2011-02-15 11:09:24 +00:00
|
|
|
<field name="folder"/>
|
|
|
|
<field name="state"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<button name="open_document" string="Open Document" type="object" icon="gtk-jump-to"/>
|
|
|
|
<button name="open_attachment" string="Open Attachments" type="object" icon="gtk-jump-to"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_email_message_search">
|
|
|
|
<field name="name">email.message.search</field>
|
|
|
|
<field name="model">email.message</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Email Search">
|
2011-02-15 11:09:24 +00:00
|
|
|
<filter icon="terp-document-new" string="Draft" domain="[('folder','=','drafts')]"/>
|
|
|
|
<filter icon="terp-personal" string="Inbox" domain="[('folder','=','inbox')]"/>
|
|
|
|
<filter icon="terp-check" string="Outbox" domain="[('folder','=','outbox')]"/>
|
|
|
|
<filter icon="terp-partner" string="Sent Items" domain="[('folder','=','sent')]"/>
|
|
|
|
<filter icon="terp-mail_delete" string="Trash" domain="[('folder','=','trash')]"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-call-start" string="Waiting" domain="[('state','=','waiting')]"/>
|
|
|
|
<filter icon="terp-gtk-stop" string="Exception" domain="[('state','=','exception')]"/>
|
2011-02-28 09:09:19 +00:00
|
|
|
<field name="email_from"/>
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="date"/>
|
2011-02-15 12:51:14 +00:00
|
|
|
<field name="user_id" string="User"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<field name="partner_id" string="Partner Name"/>
|
2011-02-08 11:13:08 +00:00
|
|
|
<newline/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<group expand="0" string="Group By..." groups="base.group_extended">
|
2011-02-15 11:09:24 +00:00
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
|
2011-02-15 12:51:14 +00:00
|
|
|
<filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
<separator orientation="vertical"/>
|
2011-02-08 05:43:39 +00:00
|
|
|
<filter string="Thread" icon="terp-mail-" domain="[]" context="{'group_by':'message_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Month" help="Creation Month" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
|
2011-02-02 08:40:29 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_view_mail_message" model="ir.actions.act_window">
|
|
|
|
<field name="name">Messages</field>
|
|
|
|
<field name="res_model">email.message</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2011-02-14 06:34:35 +00:00
|
|
|
<field name="domain">[('history', '=', True)]</field>
|
2011-02-02 08:40:29 +00:00
|
|
|
<field name="search_view_id" ref="view_email_message_search"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<act_window domain="[('partner_id', '=', active_id), ('history', '=', True)]"
|
|
|
|
id="act_res_partner_emails" name="Emails"
|
|
|
|
res_model="email.message"
|
|
|
|
src_model="res.partner"
|
|
|
|
view_id="view_email_message_tree"/>
|
|
|
|
|
|
|
|
<act_window
|
|
|
|
id="act_res_partner_open_email" name="Attachments"
|
|
|
|
res_model="ir.attachment"
|
|
|
|
src_model="email.message"
|
|
|
|
domain="[('res_id', '=', res_id),('res_model','=',model)]"/>
|
|
|
|
|
2011-02-14 06:34:35 +00:00
|
|
|
<menuitem name="Email" id="menu_email_message_tools"
|
2011-02-02 08:40:29 +00:00
|
|
|
parent="base.menu_tools" />
|
|
|
|
|
2011-02-14 06:34:35 +00:00
|
|
|
<menuitem name="Messages"
|
2011-02-02 08:40:29 +00:00
|
|
|
id="menu_email_message"
|
2011-02-03 11:28:31 +00:00
|
|
|
parent="menu_email_message_tools"
|
2011-02-02 08:40:29 +00:00
|
|
|
action="action_view_mail_message" />
|
|
|
|
|
2011-02-03 09:13:49 +00:00
|
|
|
<record model="ir.ui.view" id="email_smtp_server_form">
|
|
|
|
<field name="name">email.smtp_server.form</field>
|
|
|
|
<field name="model">email.smtp_server</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-02-14 09:11:58 +00:00
|
|
|
<form string="Smtp Server Configuration">
|
|
|
|
<group colspan="4">
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="name"/>
|
2011-02-03 09:13:49 +00:00
|
|
|
<field name="default"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2011-02-14 09:11:58 +00:00
|
|
|
<page string="Configuration">
|
2011-02-08 05:43:39 +00:00
|
|
|
<separator string="Server Information" colspan="4"/>
|
2011-02-14 09:11:58 +00:00
|
|
|
<group colspan="4" col="8">
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="smtpserver"/>
|
|
|
|
<field name="smtpport"/>
|
|
|
|
<field name="smtpssl"/>
|
|
|
|
<field name="smtptls"/>
|
2011-02-15 11:09:24 +00:00
|
|
|
</group>
|
|
|
|
|
2011-02-08 05:43:39 +00:00
|
|
|
<separator string="User Information" colspan="4"/>
|
2011-02-14 07:26:32 +00:00
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="email_id"/>
|
|
|
|
<field name="smtpuname"/>
|
|
|
|
<field name="smtppass" password="True"/>
|
2011-02-15 11:09:24 +00:00
|
|
|
|
2011-02-03 09:13:49 +00:00
|
|
|
</group>
|
2011-02-14 09:11:58 +00:00
|
|
|
<separator string="" colspan="4"/>
|
|
|
|
<label string="" colspan="2"/>
|
|
|
|
<button name="test_smtp_connection" type="object" string="Test Connection" icon="gtk-network" colspan="2"/>
|
2011-02-03 09:13:49 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="email_smtp_server_tree">
|
|
|
|
<field name="name">email.smtp_server.tree</field>
|
|
|
|
<field name="model">email.smtp_server</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-02-14 19:49:36 +00:00
|
|
|
<tree string="SMTP Server">
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="email_id"/>
|
|
|
|
<field name="smtpserver"/>
|
2011-02-14 19:49:36 +00:00
|
|
|
<field name="default"/>
|
|
|
|
<button name="test_smtp_connection" type="object" string="Test Connection" icon="gtk-network"/>
|
2011-02-03 09:13:49 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2011-02-08 05:43:39 +00:00
|
|
|
<record id="view_email_smtp_server_search" model="ir.ui.view">
|
|
|
|
<field name="name">email_smtp.server.search</field>
|
|
|
|
<field name="model">email.smtp_server</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-02-14 19:49:36 +00:00
|
|
|
<search string="Smtp Server">
|
2011-02-08 05:43:39 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="email_id"/>
|
|
|
|
</search>
|
|
|
|
</field>
|
2011-02-03 09:13:49 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_email_smtp_server_tree_all">
|
2011-02-15 07:31:50 +00:00
|
|
|
<field name="name">Outgoing Servers</field>
|
2011-02-03 09:13:49 +00:00
|
|
|
<field name="res_model">email.smtp_server</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form,tree</field>
|
|
|
|
<field name="view_id" ref="email_smtp_server_tree" />
|
|
|
|
<field name="context">{'group_by': [], 'search_default_draft': 1, 'search_default_my': 1}</field>
|
|
|
|
<field name="search_view_id" ref="view_email_smtp_server_search"/>
|
|
|
|
</record>
|
|
|
|
|
2011-02-08 05:43:39 +00:00
|
|
|
<menuitem name="Email" id="menu_config_email" parent="base.menu_lunch_survey_root" sequence="20"/>
|
2011-02-07 08:55:38 +00:00
|
|
|
|
2011-02-15 07:31:50 +00:00
|
|
|
<menuitem name="Outgoing Servers" id="menu_email_smtp_server_all" parent="menu_config_email" action="action_email_smtp_server_tree_all"/>
|
2011-02-03 09:13:49 +00:00
|
|
|
|
2011-02-02 08:40:29 +00:00
|
|
|
</data>
|
2011-02-14 06:34:35 +00:00
|
|
|
</openerp>
|