docs: add technical documentation regarding the frontend whitespace patch for sign template injection

This commit is contained in:
Suherdy Yacob 2026-04-07 09:36:44 +07:00
parent 2ed12725fd
commit e65d114687

View File

@ -25,3 +25,7 @@ Add a Sequence field type to Odoo Sign templates to automatically generate numbe
- **Dependency**: `sign` (Enterprise) - **Dependency**: `sign` (Enterprise)
- **Odoo Version**: 19.0 - **Odoo Version**: 19.0
- **Authors**: Suherdy Yacob - **Authors**: Suherdy Yacob
### Technical Notes & Bug Fixes
- **Trailing Whitespace Patch**: Custom templates injected into the Sign module canvas can sometimes incur trailing QWeb whitespace `Text` nodes. This crashed Odoos native `target.lastChild` reference when opening templates or dragging new fields. This module implements frontend Javascript patches (`sign_backend_patch.js`) over Odoo's native `insertAdjacentHTML` method to instantly trim whitespace nodes on injection. This ensures robust reliability across Odoo updates without touching core source code.