Hi all,
I’m running into an issue where changing the Session Default “Default Company” doesn’t reflect properly in List Views opened from the Sidebar or Workspace shortcuts.
What works:
Dashboards (e.g., Buying Dashboard) correctly update all charts/numbers based on the current Session Default company.
What doesn’t work:
When I open a List View (e.g., Purchase Order) from the Sidebar or a Workspace shortcut, the “Company” filter still shows the OLD company value — the one from before I changed Session Defaults — instead of the new default.
Steps to reproduce:
- Set Session Default Company = Company A
- Open Purchase Order list (sidebar) → filter shows Company A

- Change Session Default Company = Company B
- Open Purchase Order list again (sidebar or workspace) → filter still shows Company A
(expected: Company B)
It looks like the list view is caching the “last used” filter per user, separate from Session Defaults, and only applies Session Defaults when the filter field is empty.
Question:
Is there a supported/built-in way to make List View filters always sync with the current Session Default, without writing a custom Client Script for every doctype? Or is a Client Script (using onload/refresh + frappe.defaults.get_user_default) the only way currently?
Any guidance or confirmation if this is expected behavior vs. a bug would help.
Thanks!