Skip to content

Latest commit

 

History

History
 
 

web_auto_refresh

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

License: AGPL-3

Web Auto Refresh

Standard odoo does not support auto refresh the inbox message, kanban and list view when underlying model data updated by others, even though there is auto refresh option in ir.actions.act_window, this only works for old GUI client(version < 7.0). for inbound message, orders, tickets etc auto refresh function will be very useful. and allow you to ...

Installation

To install this module, you need to:

Configuration

To configure this module, you need to:

  • for inbox message auto refresh, no configuration needed
  • for kanban and list view auto refresh,

go to setting->technical->actions->window actions, find the desired action, set auto refresh parameter(>0 is enough)

Usage

To use this module, you need to:

  • For kanban and list view
    1. goes to the list or kanban view of the selected model, in display mode
    2. in another session(login via another browser and other computer), create, change or delete records of the model, then save
    3. the original list or kanban view in display mode will be auto refreshed
  • For inbox message/ mail wall auto refresh
    1. login to system and stay at the initial inbox screen, in display mode( do not invoke the compose message)
    2. from another session, create internal message on documents which you are the follower
    3. the inbox message will be auto refreshed

For further information, please visit:

Known issues / Roadmap

  • From Techical point of view, the high level implementation detail is as following
    1. on backend(Python), generate one record into model bus.bus(notification) when relevant model data updated(create/write/unlink) by calling the bus.sendone('channel','message') in overwritten method create/write/unlink
    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()
  • This module is designed as a generic solution, if only limited models need this kind of auto refresh function, in order to reduce the extra overhead(every call to create/write/unlink need to check whether notificaiton to be generated) introduced by this module, it is suggested to enhance the individual module accordingly.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.

Credits

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.