forked from Mapan/odoo17e
43 lines
1.8 KiB
XML
43 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="report_saleorder_document" inherit_id="sale.report_saleorder_document" priority="50">
|
|
<xpath expr="//div[@name='informations_reference']" position="after">
|
|
<div t-if="doc.is_subscription" class="col-auto col-3 mw-100 mb-2" name="plan">
|
|
<strong>Recurring Plan:</strong>
|
|
<p class="m-0" t-field="doc.plan_id.name"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="sale_order_digest">
|
|
<div>
|
|
<t t-if="origin== 'renewal'">This subscription is the renewal of subscription <t t-out="record_url"/>.</t>
|
|
<t t-if="origin == 'upsell'">This upsell order has been created from the subscription <t t-out="record_url"/>.</t>
|
|
<ul>
|
|
<li>Start Date: <t t-out="start_date"/></li>
|
|
<li>Next Invoice: <t t-out="next_invoice_date"/></li>
|
|
<li>MRR: <t t-out="recurring_monthly"/></li>
|
|
<li>Untaxed Total: <t t-out="untaxed_amount"/></li>
|
|
<li t-if="quotation_template">Quotation Template: <t t-out="quotation_template"/></li>
|
|
</ul>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="recurring_details" name="Pricing Details">
|
|
<t t-foreach="rendering_values" t-as="val">
|
|
<div class="pb-2">
|
|
<div>
|
|
<span class="text-start">Recurring</span>:
|
|
<span class="text-end"><t t-out="val['recurring']"/></span>
|
|
</div>
|
|
<div>
|
|
<span class="text-start">Non Recurring</span>:
|
|
<span class="text-end"><t t-out="val['non_recurring']"/></span>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
</odoo>
|