~therp-nl/therp-addons/7.0_lp1219418

« back to all changes in this revision

Viewing changes to fetchmail_inbox/view/mail_message.xml

  • Committer: Ronald Portier
  • Date: 2014-03-28 13:12:43 UTC
  • mfrom: (81.5.17 therp-addons-7.0)
  • Revision ID: ronald@therp.nl-20140328131243-d06yj7u2o9fhshrw
[MERGE] Merge upstream changes
    - resolve text conflict in fetchmail_invoice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
    <data>
 
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" />
 
12
                    </header>
 
13
                </sheet>
 
14
                <xpath expr="//sheet/group" position="after">
 
15
                    <group attrs="{'invisible': [('attachment_ids', '=', [[6, False, []]])]}" string="Attachments">
 
16
                        <field name="attachment_ids" nolabel="1" />
 
17
                    </group>
 
18
                </xpath>
 
19
            </field>
 
20
        </record>
 
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">
 
26
                    <field name="date" />
 
27
                    <field name="subject" />
 
28
                    <field name="email_from" />
 
29
                </tree>
 
30
            </field>
 
31
        </record>
 
32
    </data>
 
33
</openerp>