You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

96 lines
4.0 KiB

<odoo>
<template id="portal_my_home_taxreceipt" name="Tax receipts" inherit_id="portal.portal_my_home" customize_show="True" priority="30">
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<t t-call="portal.portal_docs_entry">
<t t-set="title">Tax receipts</t>
<t t-set="url" t-value="'/my/taxreceipts'"/>
<t t-set="placeholder_count" t-value="'taxreceipt_count'"/>
</t>
</xpath>
</template>
<template id="portal_my_home_donation" name="Tax receipts" inherit_id="portal.portal_my_home" customize_show="True" priority="30">
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<t t-call="portal.portal_docs_entry">
<t t-set="title">Donations</t>
<t t-set="url" t-value="'/my/donations'"/>
<t t-set="placeholder_count" t-value="'donation_count'"/>
</t>
</xpath>
</template>
<template id="portal_my_taxreceipts" name="My Tax receipts">
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Tax receipts</t>
</t>
<t t-if="not taxreceipts">
<p>There are currently no tax receipts for your account.</p>
</t>
<t t-if="taxreceipts" t-call="portal.portal_table">
<thead>
<tr class="active">
<th>tax receipt #</th>
<th class="text-right">Date</th>
<th class="text-right">Total</th>
</tr>
</thead>
<t t-foreach="taxreceipts" t-as="taxr">
<tr>
<td><a t-att-href="taxr.get_portal_url()"><t t-esc="taxr.number"/></a></td>
<td class="text-right"><span t-field="taxr.date"/></td>
<td class="text-right"><span t-field="taxr.amount"/></td>
</tr>
</t>
</t>
</t>
</template>
<template id="portal_my_donations" name="My Donations">
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Donations</t>
</t>
<t t-if="not donations">
<p>There are currently no donation for your account.</p>
</t>
<t t-if="donations" t-call="portal.portal_table">
<thead>
<tr class="active">
<th class="text-left">Date</th>
<th class="text-center">Affectation</th>
<th class="text-right">Amount</th>
</tr>
</thead>
<t t-foreach="donations" t-as="donation">
<tr>
<td class="text-left"><span t-field="donation.donation_date"/></td>
<td class="text-center"><span t-field="donation.product_id.name"/></td>
<td class="text-right"><span t-field="donation.amount"/></td>
</tr>
</t>
</t>
</t>
</template>
<template id="portal_kala_user_dropdown" name="kala user dropdown" inherit_id="portal.user_dropdown">
<xpath expr="//span[@t-if='_user_name']" position="replace">
<t t-if="user_id.partner_id.firstname">
<span t-attf-class="#{_user_name_class}" t-esc="user_id.partner_id.firstname"/>
</t>
<t t-if="not user_id.partner_id.firstname">
<span t-if="_user_name" t-attf-class="#{_user_name_class}" t-esc="user_id.name[:23] + '...' if user_id.name and len(user_id.name) &gt; 25 else user_id.name"/>
</t>
</xpath>
</template>
</odoo>