| controllers | ||
| data | ||
| models | ||
| static/src | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
Sign Sequence Field
Add a Sequence field type to Odoo Sign templates to automatically generate numbers upon document completion.
Features
- New Field Type: Adds a "Sequence" field to the Sign template editor toolbar.
- Auto-Generation: Automatically generates the next sequence number from a linked
ir.sequencewhen all signers have completed the document. - Live Editing: Edit Sequence Prefix, Suffix, Padding, and Next Number directly from the template editor sidebar.
- Dynamic Positioning: Place the sequence number anywhere on your document just like any other sign field.
Usage
- Edit a Template: Go to Sign -> Templates and open a template for editing.
- Drag & Drop: Drag the "Sequence" field from the left toolbar onto your document.
- Configure: Click on the sequence field to open its configuration popover:
- Select an existing Sequence record.
- (Optional) Modify the Prefix, Suffix, Padding, or Next Number.
- Save: Save the template.
- Sign: When a document created from this template is fully signed, the sequence number will be generated and stamped onto the final PDF.
Technical Details
- Module Name:
sign_sequence_field - Dependency:
sign(Enterprise) - Odoo Version: 19.0
- Authors: Suherdy Yacob
Technical Notes & Bug Fixes
- Trailing Whitespace Patch: Custom templates injected into the Sign module canvas can sometimes incur trailing QWeb whitespace
Textnodes. This crashed Odoo’s nativetarget.lastChildreference when opening templates or dragging new fields. This module implements frontend Javascript patches (sign_backend_patch.js) over Odoo's nativeinsertAdjacentHTMLmethod to instantly trim whitespace nodes on injection. This ensures robust reliability across Odoo updates without touching core source code.