75 lines
3.4 KiB
XML
75 lines
3.4 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">
|
|
<t t-if="doc.is_subscription">
|
|
<div t-if="doc.start_date and doc.end_date" class="col-4" name="plan">
|
|
<strong>Recurring Plan</strong>
|
|
<div t-field="doc.plan_id.name"/>
|
|
<div class="text-muted small">
|
|
From <span t-field="doc.start_date"/>
|
|
- Until <span t-field="doc.end_date"/>
|
|
</div>
|
|
</div>
|
|
<div t-else="" class="col" name="plan">
|
|
<strong>Recurring Plan</strong>
|
|
<div t-field="doc.plan_id.name"/>
|
|
<span t-if="doc.start_date" class="text-muted small">
|
|
From <span t-field="doc.start_date"/>
|
|
</span>
|
|
<span t-if="doc.end_date" class="text-muted small">
|
|
Until <span t-field="doc.end_date"/>
|
|
</span>
|
|
</div>
|
|
</t>
|
|
</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>
|
|
|
|
<template id="invoice_warning_message" name="Subscription Postpaid Warning">
|
|
<div t-if="rendering_values['order_count'] == 1">
|
|
You are about to invoice the subscription until the <t t-out="rendering_values['next_invoice_date']"/>.
|
|
Any new delivered quantity during this period for the following product(s) may never be invoiced:
|
|
<ul>
|
|
<li t-foreach="rendering_values['product_list']" t-as="product">
|
|
<t t-out="product"/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div t-if="rendering_values['order_count'] > 1">
|
|
You are about to invoice a subscription period in the future for product(s) with invoicing policy based on delivered quantity.
|
|
Any new delivered quantity during that period may never be invoiced.
|
|
</div>
|
|
</template>
|
|
|
|
</odoo>
|