[IMP] docuseal_signing: keep the Docuseal field order in the mapping

Fields are now ordered as returned by the Docuseal API: a sequence
field (reorderable with drag & drop) is written by
``action_fetch_fields`` according to the API field order, so deleting
a mapping line and re-fetching restores the original order instead of
appending it at the end.

Also refresh the French catalog (new Sequence field, new help texts,
stale smart_search entries dropped).

Covered by a unit test reproducing the delete-then-refetch scenario.

Assisted-By: GLM-5.3-Flash
This commit is contained in:
2026-11-03 16:45:43 +01:00
parent b3d0f4b0d3
commit 77d556c14a
6 changed files with 84 additions and 10 deletions

View File

@@ -11,9 +11,10 @@ signatures from partners in a few clicks.
templates by their ID and submitter role, and fetch their field list
from the Docuseal API with a single click.
- **Field mapping** (`docuseal.template.field`): map each Docuseal
field to a `res.partner` field. Values are pre-filled at submission
time and locked so the signer cannot change them (empty mappings stay
editable by the signer).
field to a `res.partner` field. Fields are kept in the order returned
by the Docuseal API (reorderable with drag & drop). Values are
pre-filled at submission time and locked so the signer cannot change
them (empty mappings stay editable by the signer).
- **One-click signature request**: generate a server action bound to
`res.partner` (contextual *Action* menu entry) that creates a Docuseal
submission for the selected contacts and emails them the signature