You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
10 KiB
173 lines
10 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Report template for invoice -->
|
|
<template id="account_report_invoice_document_inherit_digital_signature"
|
|
inherit_id="account.report_invoice_document">
|
|
<xpath expr="//div[@id='qrcode']" position="after">
|
|
<div id="signature" class="row justify-content-end">
|
|
<t t-if="o.company_id.position == 'left'">
|
|
<div>
|
|
<t t-if="o.move_type == 'out_invoice' and o.stamp_invoicing =='customer_invoice'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign" >
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;"/>
|
|
<p t-field="o.sign_by"
|
|
style="margin-left:160px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left:160px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left:160px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.move_type == 'in_invoice' and o.stamp_invoicing =='vendor_bill'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;"/>
|
|
<p t-field="o.sign_by"
|
|
style="margin-left:160px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left:160px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left:160px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.stamp_invoicing =='both'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;"/>
|
|
<p t-field="o.sign_by"
|
|
style="margin-left:160px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left:160px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left:160px;"/>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.company_id.position == 'right'">
|
|
<div>
|
|
<t t-if="o.move_type == 'out_invoice' and o.stamp_invoicing =='customer_invoice'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 8cm;
|
|
padding-top: 50px;" class="right"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 100px;margin-left: 650px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 650px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 650px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.move_type == 'in_invoice' and o.stamp_invoicing =='vendor_bill'">
|
|
<t t-if="o.show_stamp_invoice">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 8cm;
|
|
padding-top: 50px;" class="right"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 100px;margin-left: 650px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 650px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 650px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.stamp_invoicing =='both'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 8cm;
|
|
padding-top: 50px;" class="right"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 100px;margin-left: 650px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 650px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 650px;"/>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.company_id.position == 'center'">
|
|
<div>
|
|
<t t-if="o.move_type == 'out_invoice' and o.stamp_invoicing =='customer_invoice'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
class="center_sign"/>
|
|
<p t-field="o.sign_by" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.sign_on" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.designation" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.move_type == 'in_invoice' and o.stamp_invoicing =='vendor_bill'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
class="center_sign"/>
|
|
<p t-field="o.sign_by" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.sign_on" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.designation" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.stamp_invoicing =='both'">
|
|
<t t-if="o.show_stamp_invoice and o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_signature and o.digital_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
class="center_sign"/>
|
|
<p t-field="o.sign_by" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.sign_on" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.designation" style="margin-left: 420px;
|
|
margin-top: -10px;"/>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|