- Deleting a ``docuseal.template`` now removes its generated contextual
server action; an orphaned action would browse a deleted template at
runtime and crash.
- The display notification strings are wrapped in ``_()`` so they are
translatable, with their French translations in the catalog.
- Add a short manifest description so the Apps page renders plain text
instead of parsing the markdown README as reStructuredText.
Covered by a unit test on the template deletion lifecycle.
Assisted-By: GLM-5.3-Flash
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
``action_fetch_fields`` wiped the whole ``field_ids`` mapping on every
fetch, dropping the res.partner fields configured by the administrator.
Reconcile instead: keep existing mappings untouched, add fields new to
the Docuseal template and drop the ones removed from it.
Covered by unit tests running against a mocked Docuseal API.
Assisted-By: GLM-5.3-Flash
Pre-filled values were converted with str(), so a Many2one such as the
partner title was sent as "res.partner.title(5,)" and a selection field
as its technical key. Send the display name of relational fields and the
label of selection fields instead.
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
_create_submissions gets a send_email parameter (default True, so the
"Request signature" contextual action is unchanged), passed to the Docuseal
API. It now returns the Docuseal response of each created submission
(submitter id, slug, submission_id...) so callers can build a link to it.
New _create_draft_submissions helper: creates pre-filled submissions with
send_email=False, to be reviewed then sent for signature from Docuseal.
Also adds help texts on template_id and submitter_role.
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>