<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.ui.view" id="attachment_view_form">
            <field name="model">ir.attachment</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
              <![CDATA[
                <form string="Attachments" col="2">
                    <group id="content" col="2" colspan="1">
                        <label name="resource"/>
                        <field name="resource"/>
                        <label name="name"/>
                        <group id="name_data" col="2" colspan="1">
                            <field name="name"/>
                            <field name="data" xexpand="0"/>
                        </group>
                        <label name="type"/>
                        <field name="type"/>
                        <label name="link"/>
                        <field name="link" widget="url"/>
                    </group>
                    <field name="data" widget="image" readonly="1"/>
                    <notebook>
                        <page name="description" col="1">
                            <field name="description"/>
                        </page>
                    </notebook>
                    <group id="last" col="4" colspan="2">
                        <label name="last_user"/>
                        <field name="last_user"/>
                        <label name="last_modification"/>
                        <field name="last_modification"/>
                    </group>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="attachment_view_tree">
            <field name="model">ir.attachment</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
              <![CDATA[
                <tree string="Attachments" editable="bottom">
                    <field name="resource"/>
                    <field name="name"/>
                    <field name="summary"/>
                    <field name="last_user"/>
                    <field name="last_modification"/>
                    <field name="data"/>
                </tree>
                ]]>
            </field>
        </record>
        <record model="ir.action.act_window" id="act_attachment_form">
            <field name="name">Attachments</field>
            <field name="type">ir.action.act_window</field>
            <field name="res_model">ir.attachment</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_attachment_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="attachment_view_tree"/>
            <field name="act_window" ref="act_attachment_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_attachment_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="attachment_view_form"/>
            <field name="act_window" ref="act_attachment_form"/>
        </record>
        <menuitem name="Attachments" parent="ir.menu_models"
            action="act_attachment_form" id="menu_attachment_form"/>
    </data>
</tryton>
