~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to virustotal/attachment_view.xml

account_indian is a branch of the trunk addons
make account_indian up to date with the trunk-extra-addons

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 model='ir.ui.view' id='virustotal_attachment_view'>
 
5
            <field name="name">ir.attachment.view</field>
 
6
            <field name="model">ir.attachment</field>
 
7
            <field name="type">form</field>
 
8
            <field name="inherit_id" ref="base.view_attachment_form"/>
 
9
            <field name="arch" type="xml">
 
10
                <xpath expr='//page[@string="Attachment"]/group[1]' position='before'>
 
11
                    <group colspan='4' col='14'>
 
12
                        <separator string='VirusTotal' colspan='14'/>
 
13
                        <field name='vt_status_pict' nolabel='1'/>
 
14
                        <field name='vt_status' nolabel='1'/>
 
15
                        <group colspan='6' col='1' attrs="{'invisible':[('vt_status', '=', 'nottested')]}">
 
16
                            <field name='vt_url' nolabel='1' widget='url'/>
 
17
                        </group>
 
18
                        <button name='search_viruses' string='Search viruses' colspan="6" attrs="{'invisible':[('vt_status', '!=', 'nottested')]}" type="object"/>
 
19
                    </group>
 
20
                </xpath>    
 
21
            </field>
 
22
        </record> 
 
23
    </data>
 
24
</openerp>
 
25