4 changed files with 72 additions and 73 deletions
@ -1,7 +1,6 @@ |
|||
## Module <digital_signature> |
|||
|
|||
#### 01.07.2022 |
|||
#### Version 16.0.1.0.0 |
|||
#### 19.10.2023 |
|||
#### Version 16.0.1.1.0 |
|||
#### ADD |
|||
- Initial commit for Odoo 15 Digital Signature |
|||
|
|||
- Initial commit for Odoo 16 Digital Signature |
|||
|
@ -1,61 +1,60 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<template id="stock_picking_report_inherit" |
|||
inherit_id="stock.report_picking"> |
|||
<xpath expr="//table" position="after"> |
|||
<div id="signature" class="row justify-content-end"> |
|||
<t t-if="o.sign_applicable == 'picking_operations' or |
|||
o.sign_applicable == 'both'"> |
|||
<div class="col-4"> |
|||
<table class="table table-sm"> |
|||
<div t-if="o.digital_sign" class="mt32 ml64 mr4" |
|||
name="signature"> |
|||
<img t-att-src="image_data_uri(o.digital_sign)" |
|||
style="max-height: 4cm; max-width: 8cm; |
|||
padding-top: 50px;"/> |
|||
</div> |
|||
<tr> |
|||
<td class="text-right"> |
|||
<p t-field="o.sign_by"/> |
|||
<p t-field="o.sign_on"/> |
|||
<p t-field="o.designation"/> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
|
|||
</t> |
|||
</div> |
|||
<!-- Inheriting from 'stock.report_picking'. --> |
|||
<template id="stock_picking_report_inherit" inherit_id="stock.report_picking"> |
|||
<xpath expr="//table" position="after"> |
|||
<div id="signature" class="row justify-content-end"> |
|||
<!-- Check if 'sign_applicable' is 'picking_operations' or 'both' for displaying the signature. --> |
|||
<t t-if="o.sign_applicable == 'picking_operations' or o.sign_applicable == 'both"> |
|||
<div class="col-4"> |
|||
<table class="table table-sm"> |
|||
<!-- Check if 'digital_sign' exists before proceeding. --> |
|||
<div t-if="o.digital_sign" class="mt32 ml64 mr4" name="signature"> |
|||
<!-- Display the digital signature as an image. --> |
|||
<img t-att-src="image_data_uri(o.digital_sign)" |
|||
style="max-height: 4cm; max-width: 8cm; padding-top: 50px;"/> |
|||
</div> |
|||
<tr> |
|||
<td class="text-right" style="border: 1px solid white; background:none;"> |
|||
<!-- Display 'sign_by', 'sign_on', and 'designation' fields if they exist. --> |
|||
<p t-if="o.sign_by" t-field="o.sign_by"/> |
|||
<p t-if="o.sign_on" t-field="o.sign_on"/> |
|||
<p t-if="o.designation" t-field="o.designation"/> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
<template id="stock_delivery_slip_inherit" |
|||
inherit_id="stock.report_delivery_document"> |
|||
</template> |
|||
|
|||
<!-- Inheriting from 'stock.report_delivery_document'. --> |
|||
<template id="stock_delivery_slip_inherit" 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.sign_applicable == 'delivery' or |
|||
o.sign_applicable == 'both'"> |
|||
<div class="col-4"> |
|||
<div id="signature" class="row justify-content-end"> |
|||
<!-- Check if 'sign_applicable' is 'delivery' or 'both' for displaying the signature. --> |
|||
<t t-if="o.sign_applicable == 'delivery' or o.sign_applicable == 'both'"> |
|||
<div class="col-4"> |
|||
<table class="table table-sm"> |
|||
<div t-if="o.digital_sign" class="mt32 ml64 mr4" |
|||
name="signature"> |
|||
<!-- Check if 'digital_sign' exists before proceeding. --> |
|||
<div t-if="o.digital_sign" class="mt32 ml64 mr4" name="signature"> |
|||
<!-- Display the digital signature as an image. --> |
|||
<img t-att-src="image_data_uri(o.digital_sign)" |
|||
style="max-height: 4cm; max-width: 8cm; |
|||
padding-top: 50px;"/> |
|||
style="max-height: 4cm; max-width: 8cm; padding-top: 50px;"/> |
|||
</div> |
|||
<tr> |
|||
<td class="text-right"> |
|||
<p t-field="o.sign_by"/> |
|||
<p t-field="o.sign_on"/> |
|||
<p t-field="o.designation"/> |
|||
<td class="text-right" style="border: 1px solid white; background:none;"> |
|||
<!-- Display 'sign_by', 'sign_on', and 'designation' fields if they exist. --> |
|||
<p t-if="o.sign_by" t-field="o.sign_by"/> |
|||
<p t-if="o.sign_on" t-field="o.sign_on"/> |
|||
<p t-if="o.designation" t-field="o.designation"/> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
|
|||
</t> |
|||
</div> |
|||
</t> |
|||
</div> |
|||
</xpath> |
|||
|
|||
</template> |
|||
|
|||
</odoo> |
|||
</odoo> |
|||
|
Loading…
Reference in new issue