You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

101 lines
5.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="view_email_server_form">
<field name="name">fetchmail.server.form</field>
<field name="model">fetchmail.server</field>
<field name="inherit_id" ref="fetchmail.view_email_server_form" />
<field name="arch" type="xml">
<field name="object_id" position="attributes">
<attribute
name="attrs">{'required': [('type', '!=', 'imap')]}</attribute>
</field>
<field name="type" position="after">
<field name="folders_only" />
</field>
<xpath
expr="//notebook"
position="inside">
<page
string="Folders to monitor"
attrs="{'invisible': [('type','!=','imap')]}">
<group>
<field
name="folder_ids"
nolabel="1">
<tree colors="gray:active==False">
<field name="active" invisible="True" />
<field name="sequence" widget="handle" />
<field name="path" />
<field name="model_id" />
<field name="model_field" />
<field name="match_algorithm" />
<field name="mail_field" />
<field name="state" />
</tree>
<form>
<field name="state" invisible="1" />
<header>
<button
type="object"
name="button_confirm_folder"
string="Test &amp; Confirm"
states="draft"/>
<button
type="object"
name="button_attach_mail_manually"
string="Attach mail manually"
states="done"/>
<button
type="object"
name="fetch_mail"
string="Fetch folder now"
states="done"/>
<button
string="Reset Confirmation"
type="object"
name="set_draft"
states="done"/>
</header>
<group>
<group>
<field
name="path"
placeholder="INBOX.subfolder1" />
<field name="model_id" />
<field
name="model_field"
placeholder="email" />
<field name="match_algorithm" />
<field
name="mail_field"
placeholder="to,from" />
</group>
<group>
<field name="active" />
<field name="delete_matching" />
<field name="flag_nonmatching" />
<field name="match_first" />
<field name="msg_state" />
<field
name="model_order"
attrs="{'readonly': [('match_first','==',False)], 'required': [('match_first','==',True)]}"
placeholder="name asc,type desc" />
<field
name="domain"
placeholder="[('state', '=', 'open')]" />
</group>
</group>
</form>
</field>
</group>
<separator
string="Folders available on server"
colspan="6" />
<field name="folders_available" />
</page>
</xpath>
</field>
</record>
</odoo>