~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_override/attachment_view.xml

  • Committer: Quentin THEURET
  • Date: 2011-11-30 13:31:37 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: qt@tempo-consulting.fr-20111130133137-mdf2fp6hkqmwbppn
UF-647 [ADD] Added a line in Purchase Order to have information about international transport costs

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
 
    
5
 
        <!-- Attachment -->
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">
14
 
                        <field name="name" />
15
 
                        <field name="type" invisible="1"/>
16
 
                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
17
 
                    </group>
18
 
                    <notebook colspan="4">
19
 
                    <page string="Attachment">
20
 
                    <group col="4" colspan="4">
21
 
                        <separator string="Data" colspan="4"/>
22
 
                        <newline />
23
 
                        <group col="2" colspan="4" attrs="{'invisible':[('type','=','url')]}">
24
 
                            <field name="datas" filename="datas_fname"/>
25
 
                            <field name="datas_fname" select="1"/>
26
 
                        </group>
27
 
                        <group col="2" colspan="4" attrs="{'invisible':[('type','=','binary')]}">
28
 
                            <field name="url" widget="url"/>
29
 
                        </group>
30
 
                    </group>
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"/>
36
 
                        </group>
37
 
                    <group col="2">
38
 
                        <separator string="Created" colspan="2"/>
39
 
                        <field name="create_uid" select="2"/>
40
 
                        <field name="create_date" select="2"/>
41
 
                    </group>
42
 
                    </page>
43
 
                    <page string="Notes">
44
 
                        <field name="description" nolabel="1" colspan="4"/>
45
 
                    </page>
46
 
                    </notebook>
47
 
                </form>
48
 
            </field>
49
 
        </record>
50
 
        
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">
58
 
                    <field name="name"/>
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"/>
64
 
                </tree>
65
 
            </field>
66
 
        </record>
67
 
        
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"
77
 
                            string="URL"
78
 
                            domain="[('type','=','url')]"/>
79
 
                        <filter icon="terp-stock_align_left_24"
80
 
                            string="Binary"
81
 
                            domain="[('type','=','binary')]"/>
82
 
                        <separator orientation="vertical"/>
83
 
                        <filter icon="terp-go-month" string="Month"
84
 
                            domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-%%m-01'))]"/>
85
 
                        <separator orientation="vertical"/>
86
 
                        <field name="name"/>
87
 
                        <field name="type"/>
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" />
93
 
                        </field>
94
 
                    </group>
95
 
                    <newline/>
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'}"/>
102
 
                    </group>
103
 
                </search>
104
 
            </field>
105
 
        </record>
106
 
    
107
 
    </data>
108
 
</openerp>