feat(tablet): mail template + notification + cleanup cron (Task 5)

Mail template renders the 4-digit code in both subject (mobile
notification glance) and body (big bold display). Per Rule 25 only
core res.users fields referenced; the code itself comes from ctx.

fp.notification.template wrapper enables admin UI customization of
the body without touching code. tablet_pin_reset_requested added to
TRIGGER_EVENTS selection.

Daily ir.cron purges used/expired rows > 7 days old (audit trail
lives in fp.tablet.session.event, not here, so aggressive cleanup
is safe).

Manifest bump 19.0.34.2.0 -> 19.0.35.0.0 (triggers asset cache
invalidation on -u so the new template + SCSS load cleanly).

Phase 1 backend complete.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-25 16:51:25 -04:00
parent 46c62ebefa
commit 2aa4bce089
3 changed files with 72 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ TRIGGER_EVENTS = [
('cert_awaiting_issuance', 'Cert Awaiting Issuance'),
('cert_voided_re_notify', 'Cert Voided — Please Re-Issue'),
('job_shipped', 'Job Shipped (manual mark)'),
# Spec 2026-05-25 — tablet PIN self-service reset
('tablet_pin_reset_requested', 'Tablet PIN Reset Code Requested'),
]
# Sub 6 — map each trigger event to a communication stream. Contacts on