summaryrefslogtreecommitdiff
path: root/hrms_dashboard/report/broadfactor.xml
blob: 032a8dc117efbd9e6c680f6af0ee3457fb393618 (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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <template id="report_broadfactor">
        <t t-call="web.html_container">
            <t t-call="web.external_layout">
                <div class="page">
                    <h2>Broad Factor Report</h2>
                    <table class="table table-condensed">
                        <thead>
                            <tr>
                                <th>Employee</th>
                                <th></th>
                                <th class="text-right">Broad Factor</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr t-foreach="lines" t-as="line">
                                <t t-if="line['broad_factor']">
                                    <t t-set="broad_factor" t-value="line['broad_factor']"/>
                                </t>
                                <t t-if="not line['broad_factor']">
                                    <t t-set="broad_factor" t-value="0"/>
                                </t>
                                <td>
                                    <span t-esc="line['name']"/>
                                </td>
                                <td></td>
                                <td class="text-right">
                                    <span t-esc="broad_factor"/>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </t>
        </t>
    </template>

    <report
        id="action_report_broad_factor"
        model="hr.employee.broad.factor"
        string="Broad Factor"
        report_type="qweb-pdf"
        name="hrms_dashboard.report_broadfactor"
        file="hrms_dashboard.report_broadfactor"
        />
</odoo>