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.
416 lines
22 KiB
416 lines
22 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Report template for picking operation -->
|
|
<template id="stock_report_picking_inherit_digital_signature"
|
|
inherit_id="stock.report_picking">
|
|
<xpath expr="//table" 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.stamp_applicable == 'picking_stamp'
|
|
and o.sign_applicable == 'picking_operations'
|
|
and o.digital_sign and o.show_sign and o.show_stamp or
|
|
o.sign_applicable=='both' and o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_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-elif="o.company_id.stamp and
|
|
o.stamp_applicable == 'picking_stamp' and
|
|
o.show_stamp or o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_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-elif="o.digital_sign and
|
|
o.sign_applicable == 'picking_operations' and o.show_sign
|
|
or o.sign_applicable == 'both' and o.digital_sign ">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_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.company_id.stamp and
|
|
o.stamp_applicable == 'picking_stamp' and
|
|
o.sign_applicable == 'picking_operations' and
|
|
o.digital_sign and o.show_sign and o.show_stamp or
|
|
o.sign_applicable=='both' and
|
|
o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px;margin-left: 550px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 550px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 550px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-elif="o.company_id.stamp and
|
|
o.stamp_applicable == 'picking_stamp' and
|
|
o.show_stamp or o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px;margin-left: 550px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 550px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 550px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-elif="o.digital_sign and
|
|
o.sign_applicable == 'picking_operations' and
|
|
o.show_sign or o.sign_applicable == 'both'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px;margin-left: 550px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 550px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 550px;"/>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.company_id.position == 'center'">
|
|
<div>
|
|
<t t-if="o.company_id.stamp and
|
|
o.stamp_applicable == 'picking_stamp' and
|
|
o.sign_applicable == 'picking_operations' and
|
|
o.digital_sign and o.show_sign and o.show_stamp or
|
|
o.sign_applicable=='both' and
|
|
o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 50px;" 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>
|
|
</t>
|
|
<t t-elif="o.company_id.stamp and
|
|
o.stamp_applicable == 'picking_stamp' and
|
|
o.show_stamp or o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 50px;" 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>
|
|
</t>
|
|
<t t-elif="o.digital_sign and
|
|
o.sign_applicable == 'picking_operations' and
|
|
o.show_sign or o.sign_applicable== 'both' ">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 50px;" 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>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
<!-- Report template for delivery slip-->
|
|
<template id="stock_report_delivery_document_inherit_digital_signature"
|
|
inherit_id="stock.report_delivery_document">
|
|
<xpath expr="//div[@name='signature']" position="before">
|
|
<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.stamp_applicable == 'delivery_stamp' and
|
|
o.digital_sign and o.show_sign and
|
|
o.sign_applicable == 'delivery' or
|
|
o.sign_applicable=='both' and o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_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-elif="o.company_id.stamp and
|
|
o.stamp_applicable == 'delivery_stamp' and
|
|
o.show_stamp or o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_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-elif="o.digital_sign and o.sign_applicable == 'delivery'
|
|
and o.show_sign or o.sign_applicable == 'both'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="left"/>
|
|
</t>
|
|
<t t-if="o.show_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.company_id.stamp and
|
|
o.stamp_applicable == 'delivery_stamp' and o.digital_sign
|
|
and o.show_sign and o.sign_applicable == 'delivery' and
|
|
o.show_stamp or o.sign_applicable=='both' and
|
|
o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px;margin-left: 550px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 550px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 550px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-elif="o.company_id.stamp and
|
|
o.stamp_applicable == 'delivery_stamp' and
|
|
o.show_stamp or o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px;margin-left: 550px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 550px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 550px;"/>
|
|
</t>
|
|
</t>
|
|
<t t-elif="o.digital_sign and
|
|
o.sign_applicable == 'delivery' and
|
|
o.show_sign or o.sign_applicable == 'both'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="right"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 60px;" class="right"/>
|
|
<p t-field="o.sign_by"
|
|
style="padding-top: 150px;margin-left: 550px;"/>
|
|
<p t-field="o.sign_on"
|
|
style="margin-left: 550px;"/>
|
|
<p t-field="o.designation"
|
|
style="margin-left: 550px;"/>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.company_id.position == 'center'">
|
|
<div>
|
|
<t t-if="o.company_id.stamp and
|
|
o.stamp_applicable == 'delivery_stamp' and
|
|
o.digital_sign and o.show_sign and
|
|
o.sign_applicable == 'delivery' and o.show_stamp or
|
|
o.sign_applicable=='both' and
|
|
o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 50px;" 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>
|
|
</t>
|
|
<t t-elif="o.company_id.stamp and
|
|
o.stamp_applicable == 'delivery_stamp' and
|
|
o.show_stamp or o.stamp_applicable == 'both_stamp'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 50px;" 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>
|
|
</t>
|
|
<t t-elif="o.digital_sign and o.sign_applicable == 'delivery'
|
|
and o.show_sign or o.sign_applicable == 'both'">
|
|
<t t-if="o.show_stamp">
|
|
<img t-att-src="image_data_uri(o.company_id.stamp)"
|
|
class="center"/>
|
|
</t>
|
|
<t t-if="o.show_sign">
|
|
<img t-att-src="image_data_uri(o.digital_sign)"
|
|
style="max-height: 4cm; max-width: 6cm;
|
|
padding-top: 50px;" 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>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|