<odoo>

    <template id="po_backorder_report">
        <t t-call="web.html_container">
            <t t-call="web.external_layout">
                <div class="page">
                    <h2>PO Backorder Report</h2>
                    <table class="table table-condensed">
                        <thead>
                            <tr>
                                <th>Order Reference</th>
                                <th>Description</th>
                                <th>Backorder Qty</th>
                                <th>Backorder Value</th>
                                <th>UIGR Qty</th>
                                <th>UIGR Value</th>
                                <th>Last Date Received</th>
                                <th>Last Bill Date</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr t-foreach="docs" t-as="line">
                                <td><span t-field="line.order_id" /></td>
                                <td><span t-field="line.name" /></td>
                                <td><span t-field="line.bo_qty" /></td>
                                <td><span t-field="line.bo_value" /></td>
                                <td><span t-field="line.uigr_qty" /></td>
                                <td><span t-field="line.uigr_value" /></td>
                                <td><span t-field="line.last_date_received" /></td>
                                <td><span t-field="line.last_bill_date" /></td>
                                <td />
                            </tr>
                        </tbody>
                    </table>
                </div>
            </t>
        </t>
    </template>

    <record id="action_po_backorder_report" model="ir.actions.report">
        <field name="name">PO Backorder Report</field>
        <field name="model">purchase.order.line</field>
        <field name="report_type">qweb-pdf</field>
        <field name="binding_model_id" ref="model_purchase_order_line" />
        <field name="binding_type">report</field>
        <field name="report_name">purchase_backorder.po_backorder_report</field>
    </record>

</odoo>
