1
<?xml version="1.0" encoding="UTF-8"?>
4
<record id="view_message_form" model="ir.ui.view">
5
<field name="model">mail.message</field>
6
<field name="inherit_id" ref="mail.view_message_form"/>
7
<field name="arch" type="xml">
8
<sheet position="before">
9
<header attrs="{'invisible': [('model', '!=', 'fetchmail.inbox')]}">
10
<button string="Attach to existing object" type="object" name="fetchmail_inbox_attach_existing" class="oe_highlight" />
11
<button string="Create object" type="object" name="fetchmail_inbox_create" />
14
<xpath expr="//sheet/group" position="after">
15
<group attrs="{'invisible': [('attachment_ids', '=', [[6, False, []]])]}" string="Attachments">
16
<field name="attachment_ids" nolabel="1" />
21
<record id="tree_mail_message_fetchmail_inbox" model="ir.ui.view">
22
<field name="model">mail.message</field>
23
<field name="type">tree</field>
24
<field name="arch" type="xml">
25
<tree string="Fetchmail inbox" create="false">
27
<field name="subject" />
28
<field name="email_from" />