1.7 KiB
1.7 KiB
Sign Image Field
Add an Image field type to Odoo Sign templates to allow users to securely attach/upload images into documents.
Features
- New Field Type: Adds an "Image" field to the Sign template editor toolbar.
- Image Upload Integration: Allows signers to click the field and upload local images (JPEG, PNG, GIF) directly onto the document.
- Dynamic Positioning: Place the image field anywhere on your document just like any other sign field.
- Data Extensibility: Integrates securely with Odoo's core
sign.request.item.valuemodels to retrieve images directly inside signed PDFs.
Usage
- Edit a Template: Go to Sign -> Templates and open a template for editing.
- Drag & Drop: Drag the "Image" field from the left toolbar onto your document.
- Configure: Click on the image field to label it appropriately.
- Save: Save the template and send the sign request.
- Sign: The recipient can click on the image box to browse their system for an image to upload.
Technical Details
- Module Name:
sign_image_field - Dependency:
sign(Enterprise) - Odoo Version: 19.0
- Authors: Suherdy Yacob
Technical Notes & Bug Fixes
- Trailing Whitespace Patch (
PDFIframecrash): Custom template components injected into the Sign module canvas can sometimes incur trailing QWeb whitespaceTextnodes. This causes Odoo’s native JS to crash ontarget.lastChildreference when opening documents. This module implements a frontend Javascript patch (sign_image_upload.js) wrapping Odoo's nativeinsertAdjacentHTMLmethod to instantly trim whitespace nodes upon injection. This ensures robust application stability without diverging core Odoo source code.