1
<?xml version="1.0" encoding="utf-8"?>
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'/>
18
<button name='search_viruses' string='Search viruses' colspan="6" attrs="{'invisible':[('vt_status', '!=', 'nottested')]}" type="object"/>