fix(erpsetup): let the registry's API user append usage records #36

Merged
sharang merged 1 commits from fix/erp-usage-record-role into main 2026-09-23 21:36:37 +00:00
Owner

The live ERPNext API user platform-registry gets Sales User + Accounts User, not System Manager. Until now only System Manager could create a Usage Record, so the usage outbox would fail with 403. This adds read and create for Sales User; there is no update or delete, because the registry only appends.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

The live ERPNext API user `platform-registry` gets Sales User + Accounts User, not System Manager. Until now only System Manager could create a `Usage Record`, so the usage outbox would fail with 403. This adds read and create for Sales User; there is no update or delete, because the registry only appends. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-09-23 21:10:41 +00:00
fix(erpsetup): let the registry's API user append usage records
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 23m18s
ci / image (pull_request) Skipped
57400989ab
The API user holds Sales User and Accounts User; only System Manager
could create a Usage Record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang merged commit 25419c48b3 into main 2026-09-23 21:36:37 +00:00
Sign in to join this conversation.