identity_card.xml
6.47 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="identity_card">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<div class="page" style="height: 2px;">
<div class="oe_structure"/>
<br/>
<br/>
<br/>
<br/>
<br/>
<t t-foreach="o" t-as="student">
<br/><br/><br/>
<table width="25%" height="50px" style="border: 3px solid black;">
<tr>
<td width="100%" align="center" height="30">
<strong>
<span t-field="student.school_id.name" />
</strong>
</td>
</tr>
<tr>
<td align="center">
<img t-if="student.photo" t-att-src="'data:image/png;base64,%s' % to_text(student.photo)"
style="height:120px;width=120px" />
</td>
</tr>
<tr>
<td height="10px"></td>
</tr>
<tr>
<td align="center" height="30px">
<strong>
<span t-field="student.name" />
</strong>
<strong>
<span t-field="student.middle" />
</strong>
<strong>
<span t-field="student.last" />
</strong>
</td>
</tr>
<tr>
<td height="130">
<table width="100%">
<tr>
<td style="font-family: 'Helvetica';padding-left:20px;">
<strong>Roll No.</strong>
</td>
<td>
<strong>: </strong>
</td>
<td>
<span t-field="student.roll_no" />
</td>
</tr>
<tr>
<td style="font-family: 'Helvetica';padding-left:20px;">
<strong>Standard</strong>
</td>
<td>
<strong>: </strong>
</td>
<td>
<span t-field="student.standard_id.standard_id.name"/>
</td>
</tr>
<tr>
<td style="font-family: 'Helvetica';padding-left:20px;">
<strong>Division</strong>
</td>
<td>
<strong>: </strong>
</td>
<td>
<span t-field="student.standard_id.division_id.name"/>
</td>
</tr>
<tr>
<td style="font-family: 'Helvetica';padding-left:20px;">
<strong>Medium</strong>
</td>
<td>
<strong>: </strong>
</td>
<td>
<span t-field="student.medium_id.name" />
</td>
</tr>
<tr>
<td style="font-family: 'Helvetica';padding-left:20px;">
<strong>BirthDate</strong>
</td>
<td>
<strong>: </strong>
</td>
<td>
<span t-field="student.date_of_birth" />
</td>
</tr>
<tr>
<td style="font-family: 'Helvetica';padding-left:20px;">
<strong>Blood Group</strong>
</td>
<td>
<strong>: </strong>
</td>
<td>
<span t-field="student.blood_group" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</t>
</div>
</t>
</t>
</t>
</template>
</odoo>