From e65d114687016ff5cca617624e96c8eeaa619181 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Tue, 7 Apr 2026 09:36:44 +0700 Subject: [PATCH] docs: add technical documentation regarding the frontend whitespace patch for sign template injection --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0ecb51f..fb28d73 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,7 @@ Add a Sequence field type to Odoo Sign templates to automatically generate numbe - **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 `Text` nodes. This crashed Odoo’s 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.