blob: 14716749395612fc5452a5cedcfc84ffbf2d1736 (
plain)
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
|
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<template id="report_hash_integrity">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="company">
<t t-call="web.external_layout">
<div class="page">
<div class="row" id="hash_header">
<div class="col-12">
<br/>
<h2>Hash Integrity Result - <span t-esc="data['printing_date']"/></h2>
<br/>
</div>
</div>
<div class="row">
<div class="col-12" id="hash_config_review">
<br/>
<h3>Configuration review</h3>
<br/>
</div>
</div>
<div class="row">
<div class="col-12">
<table class="table table-bordered" style="table-layout: fixed" id="hash_config_table">
<thead style="display: table-row-group">
<tr>
<th class="text-center" style="width: 30%" scope="col">Journal</th>
<th class="text-center" style="width: 20%" scope="col">Inalterability check</th>
<th class="text-center" style="width: 50%" scope="col">Coverage</th>
</tr>
</thead>
<tbody>
<t t-foreach="data['results']" t-as="result">
<tr>
<td>
[<span t-esc="result['journal_code']"/>] <span t-esc="result['journal_name']"/>
</td>
<td class="text-center"><span t-esc="result['restricted_by_hash_table']"/></td>
<td><span t-esc="result['msg_cover']"/></td>
</tr>
</t>
</tbody>
</table>
</div>
</div>
<t t-if="any(result['first_hash'] != 'None' for result in data['results'])">
<div class="row" style="page-break-before:always;">
<div class="col-12" id="hash_data_consistency">
<br/>
<h3>Data consistency check</h3>
<br/>
</div>
</div>
<div class="row">
<div class="col-12" id="hash_data_consistency_table">
<table class="table table-bordered" style="table-layout: fixed">
<thead style="display: table-row-group">
<tr>
<th class="text-center" style="width: 20%" scope="col">Journal</th>
<th class="text-center" style="width: 20%" scope="col">First Hash</th>
<th class="text-center" style="width: 20%" scope="col">First Entry</th>
<th class="text-center" style="width: 20%" scope="col">Last Hash</th>
<th class="text-center" style="width: 20%" scope="col">Last Entry</th>
</tr>
</thead>
<tbody>
<t t-foreach="data['results']" t-as="result">
<t t-if="result['first_hash'] != 'None'">
<tr>
<td><span t-esc="result['journal_code']"/></td>
<td><span t-esc="result['first_hash']"/></td>
<td>
<span t-esc="result['first_move_name']"/> <br/>
<span t-esc="result['first_move_date']"/>
</td>
<td><span t-esc="result['last_hash']"/></td>
<td>
<span t-esc="result['last_move_name']"/> <br/>
<span t-esc="result['last_move_date']"/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
</div>
</div>
<div class="row" id="hash_last_div">
<div class="col-12" id="hash_chain_compliant">
<br/>
<h6>
The hash chain is compliant: it is not possible to alter the
data without breaking the hash chain for subsequent parts.
</h6>
<br/>
</div>
</div>
</t>
</div>
</t>
</t>
</t>
</template>
</data>
</odoo>
|