forked from niulinlnc/hr_biometric_machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiometric_machine_view.xml
94 lines (83 loc) · 3.46 KB
/
biometric_machine_view.xml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_biometric_machine_form" model="ir.ui.view">
<field name="name">biometric.machine.form</field>
<field name="model">biometric.machine</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Biometric Machine" version="7.0">
<sheet>
<div class="oe_left">
<h1>
<field name="name" required="1" placeholder="Machine IP"/>
</h1>
</div>
<div class="oe_right oe_button_box">
<button name="clear_attendance" string="Clear Data" class="oe_stat_button" icon="fa-remove " confirm="Are you sure you want to do this?" type="object"/>
<button name="download_attendance" string="Download Data" class="oe_stat_button" icon="fa-download " type="object" confirm="Are you sure you want to do this?" />
</div>
<br/><br/><br/>
<group col="4" colspan="4">
<field name="port" required="1"/>
<field name="ref_name" required="1"/>
<field name="address_id"/>
<field name="company_id"/>
</group>
<notebook>
<page string="Attendances Line">
<field name="atten_ids" nolable="1" >
<tree string="Raw Attendances" >
<field name="emp_code" readonly="1"/>
<field name="name" readonly="1"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="view_biometric_machine_tree" model="ir.ui.view">
<field name="name">biometric.machine.tree</field>
<field name="model">biometric.machine</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Biometric Machine" version="7.0">
<field name="name"/>
<field name="ref_name"/>
<field name="address_id"/>
<field name="company_id"/>
</tree>
</field>
</record>
<record id="open_view_attendance_machine" model="ir.actions.act_window">
<field name="name">Attendances</field>
<field name="res_model">biometric.machine</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="id_add_bio_machine" parent="hr.menu_hr_root" sequence="15" name="Biometric Device Manager" />
<menuitem id="id_add_bio_machine_new" parent="id_add_bio_machine" name="Attendance Machine" action="open_view_attendance_machine" />
<record id="view_custom_employee_form" model="ir.ui.view">
<field name="name">hr.employee.form</field>
<field name="model">hr.employee</field>
<field eval="47" name="priority"/>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/div[@class='oe_title']" position='replace'>
<div class="oe_title">
<label for="emp_code" />
<h1><field name="emp_code" required="1"/></h1>
<label for="name" />
<h2><field name="name" string="Name"/></h2>
<label for="category" />
<field name="category" />
<newline/>
<field name="category_ids" widget="many2many_tags" placeholder="e.g. STAFF,WORKER" groups="base.group_hr_user" invisible="1"/>
</div>
</xpath>
</field>
</record>
</data>
</openerp>