Skip to content

[FIX] academic_payment_portal: filter invoices by payment responsible - #413

Open
cav-adhoc wants to merge 1 commit into
ingadhoc:17.0from
adhoc-dev:17.0-h-116689-cav
Open

[FIX] academic_payment_portal: filter invoices by payment responsible#413
cav-adhoc wants to merge 1 commit into
ingadhoc:17.0from
adhoc-dev:17.0-h-116689-cav

Conversation

@cav-adhoc

Copy link
Copy Markdown
Contributor

When a payment responsible user logs into the portal, they should only see invoices for students where they are listed as payment responsible.

Previously, users could see all invoices for their students regardless of who was responsible for payment. This caused:

  • Access errors (403 Forbidden) when trying to pay invoices
  • Incorrect total amounts displayed
  • Confusion when multiple payment responsibles exist (e.g., mother/father)

Solution:
Override _get_selected_invoices_domain() to filter invoices by student_id.payment_responsible_ids, ensuring users only see invoices they are responsible for paying.

The fix only applies when account_payment_multi is installed (try/except) to maintain optional dependency and avoid breaking installations without the multi-payment module.

@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

When a payment responsible user logs into the portal, they should only
see invoices for students where they are listed as payment responsible.

Previously, users could see all invoices for their students regardless
of who was responsible for payment. This caused:
- Access errors (403 Forbidden) when trying to pay invoices
- Incorrect total amounts displayed
- Confusion when multiple payment responsibles exist (e.g., mother/father)

Solution:
Override _get_selected_invoices_domain() to filter invoices by
student_id.payment_responsible_ids, ensuring users only see invoices
they are responsible for paying.

The fix only applies when account_payment_multi is installed (try/except)
to maintain optional dependency and avoid breaking installations without
the multi-payment module.
@cav-adhoc
cav-adhoc force-pushed the 17.0-h-116689-cav branch from 7fa99e9 to 25428bf Compare May 29, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants