You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
620 B

7 years ago
7 years ago
7 years ago
7 years ago
  1. # MuK Web Client Refresh
  2. Adds a "refresh" channel to the web client,
  3. which can be used to trigger a view refresh without refreshing the
  4. browser itself. Furthermore, it allows the user the creation of
  5. "refresh" rules. These rules can be applied to any Odoo model and
  6. trigger a refresh either on create, write or unlink.
  7. ## Python Support
  8. Besides creating a "refresh" rule, a view refresh can be triggered
  9. manually via python. This can be useful if there is a need for a
  10. view refresh on other operations like an action.
  11. ```python
  12. self.env['bus.bus'].sendone('refresh', [self.env.cr.dbname, self._name, self._uid])
  13. ```