- Reserve the generated "Request signature" action to administrators
(base.group_system), who are the only ones able to read the Docuseal
templates, instead of letting other users hit an AccessError.
- Request the signature of a single contact from the contextual action
(_action_request_signature): with several contacts, a failure could
leave some of them already emailed while the action reports an error.
A notification confirms the request.
- Share the Docuseal API call in _docuseal_request: a missing token or a
Docuseal error (with the explanation it sends) now raises a readable
UserError when sending submissions too, not only when fetching.
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
The submitter role was a free text field. It is now a dropdown listing
only the submitter roles of the Docuseal template
(docuseal.template.role), fetched with the Docuseal UUID of each role.
- The "Fetch from Docuseal" button, now above the role, syncs the roles
(matched by UUID then name, in the Docuseal order, the first one
selected by default) and the fields of the selected role only,
keeping the existing mappings.
- Changing the role fetches the fields of the new role from Docuseal
with an empty mapping, and warns that saving loses the current one.
- Signature requests only send the fields of the submitter role.
- Docuseal API errors and a missing token raise a clear UserError.
- Keep the Docuseal field name of new mapping lines on save
(force_save on the read-only column).
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Add the module README documenting purpose, features (template
registry, field mapping, contextual server action, settings) and
installation requirements.
Remove ``res.partner#request_docuseal_signature``, which was introduced
as a public entry point for other code but was never called: the
generated server action calls ``docuseal.template._create_submissions``
directly. The template method is now the single entry point for
signature requests.
Assisted-By: GLM-5.3-Flash