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
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<openerp>
<data>
<template id="report_purchaserequests">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="report.external_layout">
<div class="page">
<div class="oe_structure"/>
<h2>Purchase Request <span t-field="o.name"/></h2>
<div class="row mt32 mb32">
<div class="col-xs-3">
<strong>Request Reference:</strong><br/>
<span t-field="o.name"/>
</div>
<div class="col-xs-3">
<strong>Creation Date:</strong><br/>
<span t-field="o.date_start"/>
</div>
<div class="col-xs-3">
<strong>Source:</strong><br/>
<span t-field="o.origin"/>
</div>
<div class="col-xs-3">
<strong>Description:</strong><br/>
<span t-field="o.description"/>
</div>
<div class="col-xs-3">
<strong>Requested by:</strong><br/>
<span t-field="o.requested_by"/>
</div>
<div class="col-xs-3">
<strong>Assigned to:</strong><br/>
<span t-field="o.assigned_to"/>
</div>
<div class="col-xs-3">
<strong>Picking Type:</strong><br/>
<span t-field="o.picking_type_id"/>
</div>
</div>
<t t-if="o.line_ids">
<h3>Products</h3>
<table class="table table-condensed">
<thead>
<tr>
<th><strong>Description</strong></th>
<th groups="analytic.group_analytic_accounting">
<strong>Analytic Account</strong>
</th>
<th class="text-right"><strong>Qty</strong></th>
<th class="text-center" groups="product.group_uom">
<strong>Product UoM</strong>
</th>
<th class="text-right"><strong>Requested Date</strong></th>
<th><strong>Specifications</strong></th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.line_ids" t-as="line_ids">
<td>
<span t-field="line_ids.name"/>
</td>
<td groups="analytic.group_analytic_accounting">
<span t-field="line_ids.analytic_account_id"/>
</td>
<td class="text-right">
<span t-field="line_ids.product_qty"/>
</td>
<t>
<td class="text-center" groups="product.group_uom">
<span t-field="line_ids.product_uom_id.category_id.name"/>
</td>
</t>
<td class="text-right">
<span t-field="line_ids.date_required"/>
</td>
<td>
<span t-field="line_ids.specifications"/>
</td>
</tr>
</tbody>
</table>
</t>
<div class="oe_structure"/>
</div>
</t>
</t>
</t>
</template>
</data>
</openerp>