1
<?xml version="1.0" encoding="utf-8"?>
6
<record id="view_attachment_form_2" model="ir.ui.view">
7
<field name="name">ir.attachment.view</field>
8
<field name="model">ir.attachment</field>
9
<field name="type">form</field>
10
<field name="priority">10</field>
11
<field name="arch" type="xml">
12
<form string="Attachments" hide_new_button="1" hide_duplicate_button="1">
13
<group colspan="4" col="6">
15
<field name="type" invisible="1"/>
16
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
18
<notebook colspan="4">
19
<page string="Attachment">
20
<group col="4" colspan="4">
21
<separator string="Data" colspan="4"/>
23
<group col="2" colspan="4" attrs="{'invisible':[('type','=','url')]}">
24
<field name="datas" filename="datas_fname"/>
25
<field name="datas_fname" select="1"/>
27
<group col="2" colspan="4" attrs="{'invisible':[('type','=','binary')]}">
28
<field name="url" widget="url"/>
31
<group col="2" colspan="2">
32
<separator string="Attached To" colspan="2"/>
33
<field name="res_model" select="2" invisible="1"/>
34
<field name="res_id" invisible="1"/>
35
<field name="res_name"/>
38
<separator string="Created" colspan="2"/>
39
<field name="create_uid" select="2"/>
40
<field name="create_date" select="2"/>
44
<field name="description" nolabel="1" colspan="4"/>
51
<record id="view_attachment_tree_2" model="ir.ui.view">
52
<field name="name">ir.attachment.view.tree</field>
53
<field name="model">ir.attachment</field>
54
<field name="type">tree</field>
55
<field name="priority">10</field>
56
<field name="arch" type="xml">
57
<tree string="Attachments" hide_new_button="1">
59
<field name="datas_fname"/>
60
<field name="type" invisible="1"/>
61
<field name="company_id" groups="base.group_multi_company"/>
62
<field name="create_uid"/>
63
<field name="create_date"/>
68
<record id="view_attachment_search_2" model="ir.ui.view">
69
<field name="name">ir.attachment.search</field>
70
<field name="model">ir.attachment</field>
71
<field name="type">search</field>
72
<field name="priority">10</field>
73
<field name="arch" type="xml">
74
<search string="Attachments">
75
<group colspan="4" col="10">
76
<filter icon="terp-stage"
78
domain="[('type','=','url')]"/>
79
<filter icon="terp-stock_align_left_24"
81
domain="[('type','=','binary')]"/>
82
<separator orientation="vertical"/>
83
<filter icon="terp-go-month" string="Month"
84
domain="[('create_date','<=', time.strftime('%%Y-%%m-%%d')),('create_date','>=',time.strftime('%%Y-%%m-01'))]"/>
85
<separator orientation="vertical"/>
88
<field name="datas_fname"/>
89
<field name="create_uid">
90
<filter icon="terp-personal"
91
domain="[('create_uid','=',uid)]"
92
help="Filter on my documents" />
96
<group expand="0" string="Group By...">
97
<filter string="Owner" icon="terp-personal" domain="[]" context="{'group_by':'create_uid'}"/>
98
<filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}" />
99
<filter string="Company" icon="terp-gtk-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
100
<separator orientation="vertical"/>
101
<filter string="Month" help="Creation Month" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>