[16.0][ADD] budget_transfer_portal: customer portal for budget transfers - #1133
Open
n3n wants to merge 2 commits into
Open
[16.0][ADD] budget_transfer_portal: customer portal for budget transfers#1133n3n wants to merge 2 commits into
n3n wants to merge 2 commits into
Conversation
Expose budget.transfer on the customer portal via portal.mixin: a list at /my/budget-transfers and a per-record page at /my/budget-transfer/<id> that previews the งปม.303 PDF (budget_transfer_pdf) inline, with download/print and chatter. Access is token- or ACL-based through the stock portal helpers.
Let e-Saraban approval-route participants open a budget transfer's portal link by identity (no shared token). Overrides _document_check_access so a reached recipient or the sender of any linked หนังสือ is allowed in; avoids an ir.rule, which would clamp budget users' unrestricted row access.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two new modules.
budget_transfer_portal — exposes
budget.transferon the customer portal viaportal.mixin: a list at/my/budget-transfersand a per-record page at/my/budget-transfer/<id>that previews the งปม.303 PDF (frombudget_transfer_pdf) inline, with download/print buttons and chatter, following the existingdisbursementportal pattern. Access is token- or ACL-based through the stock portal helpers, and the list degrades to empty for users without model access.budget_transfer_portal_sarabun_access — lets e-Saraban approval-route participants open a transfer's portal link by identity (no shared token) by overriding
_document_check_accessto admit a reached recipient or the sender of any linked หนังสือ. This is done at the controller rather than via anir.rule, which would otherwise clamp budget users' unrestricted row access.วิธี Manual Test
เตรียม
budget_transfer_portal(ลากมา deps:budget_transfer,budget_transfer_pdf,portal)1) budget_transfer_portal — เจ้าของ/ผู้มีสิทธิ์งบประมาณ
/my/my/budget-transfers/my/budget-transfer/<id>Budget Transfer-<เลขที่>.pdf?access_token=...ไปเปิดในหน้าต่าง incognito (ไม่ login)/my2) budget_transfer_portal_sarabun_access — ผู้อยู่ในเส้นทางอนุมัติ
budget_transfer_portal_sarabun_access(deps:budget_transfer_portal,budget_transfer_sarabun)sent) จนหนังสือ reach ผู้อนุมัติในเส้นทาง/my/budget-transfer/<id>โดยไม่ใส่ access_token/my/my(เข้าไม่ได้)/my/budget-transfersยังเห็นรายการครบเหมือนเดิม (โมดูลนี้ไม่ได้ไปจำกัดสิทธิ์เดิม)