| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/web |
| GIT | |
| GIT | https://github.com/OCA/web.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/web/tree/16.0/web_refresh_from_backend |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Web |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Cetmix |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Cetmix |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, Ivan Sokolov |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/web |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:11:53 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base - base_setup - web - bus - web_tour |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | # 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. **NB:** this module refreshes views using direct actions instead of calling `action_reload`. This is done to avoid possible glitches and is aligned with the same approach used in the [web_refreshed](https://github.com/OCA/web/tree/16.0/web_refresher) module. --- ## 🔧 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. | --- ## ⚠️ Important Notes Use this function **wisely**. When reloading **form views**, be aware that if a user is currently editing a record, **their unsaved updates may be lost**. |
No views found for this module.
No new fields.
Public methods (1)reload_views(self, model, view_types=None, rec_ids=None)