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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
    
    <!-- Audittrail View Log  wizard-->
    
  		<record id="view_audittrail_view_log" model="ir.ui.view">
            <field name="name">audittrail.view.log.form</field>
            <field name="model">audittrail.view.log</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Audit Logs">
                	<group colspan="4" >
                		 <field name="from" colspan="4"/>
              			 <newline/>
              			 <field name="to" colspan="4"/>   
                    </group>
                       	<separator string="" colspan="4" />
                    <group colspan="4" col="6">
                    	<button icon="gtk-cancel" special="cancel"
                    		string="Cancel" />
                    	<button icon="gtk-open" string="Open Logs"
                    		name="log_open_window" type="object" />
                    </group>
               </form>
            </field>
  		</record>
  
  <!-- action for audittrail view log wizard -->
  		
        <record id="action_audittrail_view_log" model="ir.actions.act_window">
            <field name="name">Track changes</field>
            <field name="res_model">audittrail.view.log</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
           <field name="view_id" ref="view_audittrail_view_log"/> 
           <field name="target">new</field>
        </record>
        
    </data>
</openerp>