- Do not copy the contextual action nor the submitter role with a
template: a copy sharing the action would rewrite or delete the
original's.
- Make the template ID read-only once fetched from Docuseal: another
Docuseal template needs a new entry.
- Report an invalid API URL or token, an unexpected (non-JSON) response
and a connection dropped mid-response as a readable UserError.
- Refuse to email a signature request to contacts without a valid email
address (email_normalize), before any call to Docuseal.
- Stop logging the field values and the Docuseal response, which hold
personal data and the signing links.
- Prevent adding mapping lines by hand: they come from Docuseal only.
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
Cover with a mocked Docuseal API (shared ``DocusealApiMockMixin``
capturing every request):
- field value conversion matrix in ``_create_submissions``: char,
selection label, many2one/many2many display names, date formatting,
empty value left editable while set values are locked
- payload structure and one-submission-per-partner behavior
- draft submissions created with ``send_email`` disabled
- API URL trailing slash stripped
- server action creation is idempotent
Assisted-By: GLM-5.3-Flash
- 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