odoo/addons/sale_layout/views/sale_layout_template.xml

43 lines
1.5 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; padding-left: 10px; border-bottom: 1px solid black;">
<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="p['subtotal']"></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" class="active">
***
</td>
</tr>
</t>
</template>
</data>
</openerp>