web icon indicating copy to clipboard operation
web copied to clipboard

[16.0][ADD]web_refresh_from_backend: Refresh views from backend

Open DemchukM opened this issue 1 month ago • 2 comments

Backend UI Reload Module

This is a technical module that allows triggering a UI reload from the backend. It enables triggering the reload action for selected users and record IDs.


🔧 Helper Function: reload_views

A special helper function reload_views is added to the res.users model.

Arguments

Argument Type Description
model Char Model name, e.g. 'res.partner'
view_types List of Char (optional) View types to reload, e.g. ["form", "kanban"]. Leave blank to reload all views.
rec_ids List of Integer (optional) The view will be reloaded only if a record with an ID from this list is present in the view.

DemchukM avatar Nov 12 '25 20:11 DemchukM

What if the user is making edits to that view that will be refreshed? She would use the info?

JordiBForgeFlow avatar Nov 14 '25 11:11 JordiBForgeFlow

What if the user is making edits to that view that will be refreshed? She would use the info?

@JordiBForgeFlow yes, this may happen. This is why there is a special warning in the module description.

ivs-cetmix avatar Nov 18 '25 09:11 ivs-cetmix

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot avatar Dec 02 '25 07:12 OCA-git-bot