odoo/addons/sale_layout/views/sale_layout_template.xml

43 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="category_template">
<!-- Category name -->
<t t-if="p['category']">
<tr>
<td colspan="100" class="active" style="font-weight: bold; border-bottom: 1px solid black;">&gt;
<t t-if="p['category'].name">
<t t-esc="p['category'].name"></t>
</t>
<t t-if="not p['category'].name">
Uncategorized
</t>
</td>
</tr>
</t>
</template>
<template id="subtotal_template">
<!-- Subtotal -->
<t t-if="'subtotal' in p['category'] and p['category'].subtotal is True">
<tr class="text-right">
<td colspan="100">
<strong>Subtotal: </strong>
<t t-esc="formatLang(p['subtotal'], digits=get_digits(dp='Account'), currency_obj=res_company.currency_id)"></t>
</td>
</tr>
</t>
</template>
<template id="separator_template">
<!-- Separator -->
<t t-if="'separator' in p['category'] and p['category'].separator is True">
<tr class="text-center">
<td colspan="100">
***
</td>
</tr>
</t>
</template>
</data>
</openerp>