|
@ -1,7 +1,7 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<odoo> |
|
|
<odoo> |
|
|
<data> |
|
|
<data> |
|
|
<!--modern Template View--> |
|
|
<!--modern Template View--> |
|
|
<template id="custom_template_report_invoice_modern"> |
|
|
<template id="custom_template_report_invoice_modern"> |
|
|
<t t-if="o and 'company_id' in o"> |
|
|
<t t-if="o and 'company_id' in o"> |
|
|
<t t-set="company" t-value="o.company_id"/> |
|
|
<t t-set="company" t-value="o.company_id"/> |
|
@ -130,26 +130,8 @@ |
|
|
<strong>Customer Address</strong> |
|
|
<strong>Customer Address</strong> |
|
|
<br/> |
|
|
<br/> |
|
|
<span style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
<span style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
t-field="o.partner_id"/> |
|
|
t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> |
|
|
<br/> |
|
|
<br/> |
|
|
<span t-if="o.theme_id.address"> |
|
|
|
|
|
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
|
|
|
t-field="o.partner_id.street"/> |
|
|
|
|
|
<br/> |
|
|
|
|
|
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
|
|
|
t-field="o.partner_id.street2"/> |
|
|
|
|
|
<br/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span t-if="o.theme_id.city"> |
|
|
|
|
|
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
|
|
|
t-field="o.partner_id.city"/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<br/> |
|
|
|
|
|
<span t-if="o.theme_id.country"> |
|
|
|
|
|
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
|
|
|
t-field="o.partner_id.country_id"/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<br/> |
|
|
|
|
|
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;" |
|
|
t-field="o.partner_id.vat"/> |
|
|
t-field="o.partner_id.vat"/> |
|
|
<br/> |
|
|
<br/> |
|
@ -287,20 +269,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="padding-top:10%;" class="col-12"> |
|
|
<div style="padding-top:10%;" class="col-12"> |
|
|
<p t-if="o.narration"> |
|
|
<p t-if="o.move_type in ('out_invoice', 'in_refund') and o.payment_reference" |
|
|
<strong>Comment:</strong> |
|
|
name="payment_communication"> |
|
|
<span t-field="o.narration"/> |
|
|
|
|
|
</p> |
|
|
|
|
|
<p t-if="o.fiscal_position_id.note"> |
|
|
|
|
|
<strong>Fiscal Position Remark:</strong> |
|
|
|
|
|
<span t-field="o.fiscal_position_id.note"/> |
|
|
|
|
|
</p> |
|
|
|
|
|
<br/> |
|
|
|
|
|
<br/> |
|
|
|
|
|
<p t-if="o.move_type in ('out_invoice','in_refund')"> |
|
|
|
|
|
Please use the following communication for your |
|
|
Please use the following communication for your |
|
|
payment |
|
|
payment : |
|
|
: |
|
|
|
|
|
<b> |
|
|
<b> |
|
|
<span t-field="o.payment_reference"/> |
|
|
<span t-field="o.payment_reference"/> |
|
|
</b> |
|
|
</b> |
|
@ -308,34 +280,31 @@ |
|
|
<p t-if="o.invoice_payment_term_id" name="payment_term"> |
|
|
<p t-if="o.invoice_payment_term_id" name="payment_term"> |
|
|
<span t-field="o.invoice_payment_term_id.note"/> |
|
|
<span t-field="o.invoice_payment_term_id.note"/> |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
<p t-if="o.narration" name="comment"> |
|
|
|
|
|
<span t-field="o.narration"/> |
|
|
|
|
|
</p> |
|
|
<p t-if="o.fiscal_position_id.note" name="note"> |
|
|
<p t-if="o.fiscal_position_id.note" name="note"> |
|
|
<span t-field="o.fiscal_position_id.note"/> |
|
|
<span t-field="o.fiscal_position_id.note"/> |
|
|
</p> |
|
|
</p> |
|
|
<t t-if="o.company_id.country_id.code == 'IN'"> |
|
|
<p t-if="o.invoice_incoterm_id" name="incoterm"> |
|
|
<p id="total_in_words" class="mb16"> |
|
|
<strong>Incoterm:</strong> |
|
|
<strong>Total (In Words):</strong> |
|
|
<span t-field="o.invoice_incoterm_id.code"/> |
|
|
<span t-field="o.amount_total_words"/> |
|
|
- |
|
|
</p> |
|
|
<span t-field="o.invoice_incoterm_id.name"/> |
|
|
</t> |
|
|
</p> |
|
|
<div id="qrcode" |
|
|
<div id="qrcode" |
|
|
t-if="(o.company_id.qr_code) and (o.currency_id.name == 'EUR') and (o.invoice_partner_bank_id.acc_number != False)"> |
|
|
t-if="o.display_qr_code and o.amount_residual > 0"> |
|
|
<p t-if="(o.invoice_partner_bank_id.qr_code_valid)"> |
|
|
<p t-if="qr_code_urls.get(o.id)"> |
|
|
<strong class="text-center">Scan me with your |
|
|
<strong class="text-center">Scan me with your |
|
|
banking app. |
|
|
banking app. |
|
|
</strong> |
|
|
</strong> |
|
|
<br/> |
|
|
<br/> |
|
|
<br/> |
|
|
<br/> |
|
|
<img class="border border-dark rounded" |
|
|
<img class="border border-dark rounded" |
|
|
t-att-src="o.invoice_partner_bank_id.build_qr_code_url(o.amount_residual, o.ref or o.name)"/> |
|
|
t-att-src="qr_code_urls[o.id]"/> |
|
|
</p> |
|
|
|
|
|
<p t-if="(o.invoice_partner_bank_id.qr_code_valid == False)"> |
|
|
|
|
|
<strong class="text-center">The SEPA QR Code |
|
|
|
|
|
informations are not set |
|
|
|
|
|
correctly. |
|
|
|
|
|
</strong> |
|
|
|
|
|
<br/> |
|
|
|
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|