portal_templates.xml 1.46 KB
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <template id="portal_idg_boards">
            <t t-call="website.layout">
                <t t-set="title">IDG Tax Dashboard</t>
                <h2>IDG Region Tax Dashboard #</h2>
                <t t-call="portal.portal_table">
                    <thead>
                        <tr class="active">
                            <th class="text-left">Tax Category</th>
                            <th class="text-right">Qty</th>
                            <th class="text-right">Amount</th>
                        </tr>
                    </thead>
                    <tbody>
                        <t t-foreach="taxs" t-as="tax">
                            <tr>
                                <td>
                                    <a t-att-href="tax.get_portal_url()">
                                        <t t-esc="tax.account_group_id.name"/>
                                    </a>
                                </td>
                                <td  class="text-right">
                                    <span t-field="tax.qty"/>
                                </td>
                                <td  class="text-right">
                                    <span t-field="tax.amount"/>
                                </td>
                            </tr>
                        </t>
                    </tbody>
                </t>

            </t>
        </template>
    </data>
</openerp>