Commit Graph

2 Commits

Author SHA1 Message Date
f9a8358e95 [IMP] docuseal_signing: add unit tests for API payload and server action
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s
tests / test (pull_request) Successful in 51s
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
2026-11-09 15:39:26 +01:00
5050219d8c [FIX] docuseal_signing: clean up server action and translate notifications
- 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
2026-11-09 15:39:26 +01:00