44 lines
1.2 KiB
XML
44 lines
1.2 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;">&bull;
|
|
<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>
|
|
<span t-esc="p['subtotal']" t-esc-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
|
|
</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>
|