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.
112 lines
6.0 KiB
112 lines
6.0 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<!-- Report template for purchase order report -->
|
|
<template
|
|
id="purchase_report_purchaseorder_document_inherit_digital_signature"
|
|
inherit_id="purchase.report_purchaseorder_document">
|
|
<xpath expr="//div[@id='total']" position="after">
|
|
<div id="signature" class="row justify-content-end">
|
|
<t t-if="o.company_id.position == 'left'">
|
|
<div>
|
|
<t t-if="o.company_id.stamp and o.show_stamp_po and
|
|
o.digital_sign and o.show_signature">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
<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-elif="o.company_id.stamp and o.show_stamp_po">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-elif="o.digital_sign and o.show_signature">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 50px;"/>
|
|
<p t-field="o.sign_by"
|
|
style="margin-left:50px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left:50px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left:50px;"/>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.company_id.position == 'right'">
|
|
<div>
|
|
<t t-if="o.company_id.stamp and o.digital_sign and
|
|
o.show_stamp_po and o.show_signature">
|
|
<t t-if="o.company_id.stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 8cm;
|
|
padding-top: 50px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px; 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-elif="o.company_id.stamp and o.show_stamp_po">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
<t t-elif="o.digital_sign and o.show_signature">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 8cm;
|
|
padding-top: 50px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px;margin-left:700px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 700px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 700px;"/>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.company_id.position == 'center'">
|
|
<div>
|
|
<t t-if="o.company_id.stamp and o.digital_sign and
|
|
o.show_stamp_po and o.show_signature">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
<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-elif="o.company_id.stamp and o.show_stamp_po">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-elif="o.digital_sign and o.show_signature">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
class="center"/>
|
|
<p t-field="o.sign_by" style="margin-left: 320px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.sign_on" style="margin-left: 320px;
|
|
margin-top: -10px;"/>
|
|
<p t-field="o.designation" style="margin-left: 320px;
|
|
margin-top: -10px;"/>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|