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.

78 lines
3.1 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :alt: License: AGPL-3
  3. Web Auto Refresh
  4. ===========
  5. Standard odoo 10.0 only support auto refreshing the inbox message, for kanban and list view when underlying model data updated by others, even though the auto search option in ir.actions.act_window activated, system will not auto refresh the kanban and list view as expected, this small moddue just fills this gap, this module is useful for keep monitoring orders, tickets etc without manual refresh the browser.
  6. Installation
  7. ============
  8. To install this module, you need to:
  9. Configuration
  10. =============
  11. To configure this module, you need to:
  12. 1. go to setting->technical->actions->window actions, find the desired action, activate the auto search Check box
  13. 2. add one automated action for the target model , in the linked server action add the following python code, this automated action can be applied(when to run) to creation, update or delete per your requirement
  14. model.env['bus.bus'].sendone('auto_refresh', model._name)
  15. Usage
  16. =====
  17. To use this module, you need to:
  18. 1. goes to the list or kanban view of the selected model, in display mode
  19. 2. in another session(login via another browser and other computer), create, change or delete records of the model, then save
  20. 3. the original list or kanban view in display mode will be auto refreshed
  21. For further information, please visit:
  22. * https://www.odoo.com/forum/help-1
  23. Known issues / Roadmap
  24. ======================
  25. * From Techical point of view, the high level implementation detail is as following
  26. 1. on backend(Python code triggered by automated server action), generate one record into model bus.bus(notification) when relevant model data updated(create/write/unlink) by calling the bus.sendone('channel','message')
  27. 2. on frontend(javascript), declare the event listener to handle the notification message, check to see whether the notification(message) is relevant for the current view/ user, if so auto refresh the view, either call reload(),do_reload(), or do_search_view_search()
  28. Bug Tracker
  29. ===========
  30. Bugs are tracked on `GitHub Issues <https://github.com/OCA/{project_repo}/issues>`_.
  31. In case of trouble, please check there if your issue has already been reported.
  32. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  33. `here <https://github.com/OCA/{project_repo}/issues/new?body=module:%20{module_name}%0Aversion:%20{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  34. Credits
  35. =======
  36. Contributors
  37. ------------
  38. * Fisher Yu <szufisher@gmail.com>
  39. * Wolfgang Pichler <wpichler@callino.at>
  40. Maintainer
  41. ----------
  42. .. image:: https://odoo-community.org/logo.png
  43. :alt: Odoo Community Association
  44. :target: https://odoo-community.org
  45. This module is maintained by the OCA.
  46. OCA, or the Odoo Community Association, is a nonprofit organization whose
  47. mission is to support the collaborative development of Odoo features and
  48. promote its widespread use.
  49. To contribute to this module, please visit http://odoo-community.org.