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.
 
 
 
 
 

46 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Rémy Taymans <remytaymans@gmail.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- Add pos.order total amount -->
<template
id="total_pos_order_amount"
name="Portal total POS order amount"
priority="40"
inherit_id="portal.portal_layout">
<xpath expr="//div[hasclass('o_portal_my_details')]" position="after">
<div class="o_my_details_eater mt-2">
<h4 class="page-header">Purchases</h4>
<hr class="mt-1 mb-0"/>
<p>
You have purchased a total amount of
<span t-esc="posorder_amount"
t-esc-options='{"widget": "monetary", "display_currency": "company_currency"}'/>
.
</p>
<table class="table table-striped">
<tr>
<th>
Year
</th>
<th>
Amount
</th>
</tr>
<tr t-foreach="posorder_amount_by_year" t-as="row">
<td>
<t t-esc="row['year']"/>
</td>
<td>
<t t-esc="row['amount']" t-esc-options='{"widget": "monetary", "display_currency": "company_currency"}'/>
</td>
</tr>
</table>
</div>
</xpath>
</template>
</odoo>