<field name="model">fetchmail.server</field>
<field name="type">tree</field>
<field name="arch" type="xml">
- <tree colors="blue:state in ('draft');" string="POP/IMAP Servers">
+ <tree colors="blue:state == 'draft'" string="POP/IMAP Servers">
<field name="name"/>
<field name="type"/>
<field name="is_ssl"/>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Incoming Mail Server">
- <group col="6" colspan="4">
- <field name="name" select="1" colspan="4"/>
- <field name="type" select="1" on_change="onchange_server_type(type, is_ssl)"/>
+ <group colspan="4" col="6">
+ <field name="name" select="1"/>
+ <field name="type" select="1" on_change="onchange_server_type(type, is_ssl, object_id)"/>
<field name="date" select="1"/>
</group>
<notebook colspan="4">
<page string="Server & Login">
- <group col="4" colspan="2">
+ <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}">
<separator string="Server Information" colspan="2"/>
- <field name="server" colspan="4"/>
- <field name="port" />
+ <field name="server" colspan="2" attrs="{'required' : [('type', '!=', 'local')]}" />
+ <field name="port" required="1" attrs="{'required' : [('type', '!=', 'local')]}" />
<field name="is_ssl" select="1" on_change="onchange_server_type(type, is_ssl)"/>
</group>
- <group col="2" colspan="2">
+ <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}">
<separator string="Login Information" colspan="2"/>
- <field name="user" />
- <field name="password" password="True" />
+ <field name="user" attrs="{'required' : [('type', '!=', 'local')]}"/>
+ <field name="password" password="True" attrs="{'required' : [('type', '!=', 'local')]}"/>
</group>
<group col="2" colspan="2">
- <separator string="Automated Processing" colspan="2"/>
- <field name="object_id"/>
- <field name="action_id"/>
+ <separator string="Actions to Perform on Incoming Mails" colspan="2"/>
+ <field name="object_id" on_change="onchange_server_type(type, is_ssl, object_id)"/>
+ <field name="action_id" groups="base.group_extended"/>
+ </group>
+ <group attrs="{'invisible' : [('type', '!=', 'local')]}" colspan="4" col="4">
+ <separator string="Configuration" colspan="4"/>
+ <field name="configuration" colspan="4"/>
+ <field name="script" colspan="4" widget="url"/>
</group>
- <separator string="Description" colspan="4"/>
- <field name="note" colspan="4" nolabel="1"/>
</page>
- <page string="Advanced">
+ <page string="Advanced" groups="base.group_extended">
<group colspan="2" col="2">
<separator string="Advanced options" colspan="2"/>
- <field name="priority"/>
+ <field name="priority" groups="base.group_extended"/>
<field name="attach"/>
<field name="original"/>
<field name="active" select="1"/>
</group>
</page>
</notebook>
- <group col="6" colspan="4">
- <field name="state" select="1"/>
+ <group colspan="4" col="6" attrs="{'invisible' : [('type', '=', 'local')]}">
+ <field name="state"/>
<button string="Reset Confirmation" type="object" name="set_draft" icon="gtk-convert" states="done"/>
<button string="Test & Confirm" type="object" name="button_confirm_login" states="draft" icon="gtk-apply"/>
<button string="Fetch Now" type="object" name="fetch_mail" states="done" icon="gtk-network"/>
<filter string="SSL" icon="terp-camera_test" domain="[('is_ssl','=',True)]" help="If SSL required."/>
<separator orientation="vertical"/>
<field name="name"/>
- <field name="object_id"/>
- <newline/>
- <group expand="0" string="Group By..." groups="base.group_extended">
- <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
- <separator orientation="vertical"/>
- <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
- </group>
</search>
</field>
</record>
</record>
<menuitem
- parent="base.next_id_15"
+ parent="base.menu_email"
id="menu_action_fetchmail_server_tree"
action="action_email_server_tree"
name="Incoming Mail Servers"
- sequence="40"
+ sequence="14"
/>
<record model="ir.ui.view" id="email_message_tree_view">
</record>
<act_window
- context="{'search_default_server_id': active_id, 'default_server_id': active_id}"
+ context="{'search_default_server_id': active_id, 'default_fetchmail_server_id': active_id}"
id="act_server_history" name="Messages" domain="[('email_from', '!=', False), ('fetchmail_server_id', '=', active_id)]"
res_model="mail.message" src_model="fetchmail.server"/>