Search 1.9 billion lines of Odoo code on GitHub

web_auto_refresh

Author: Fisher Yu, Odoo Community Association (OCA)
License: no license
Branch: master
Repository: Andyeyo/Odoo-Addons
Dependencies: bus, mail, and web
Languages: JavaScript (73, 48.7%), Python (14, 9.3%), XML (20, 13.3%), and reStructuredText (43, 28.7%)
Other repositories: Callino/web, Guobower/Odoo-Addons-2, OdooBulgaria/Odoo-Addons-17, ProJobless/posRestaurantQrOdoo8, TheCloneMaster/Odoo-Addons, Upsyd/posRestaurantQrOdoo8, ayyoub36/posRestaurantQrOdoo8, daemondev/Odoo-Addons, dhecar/posRestaurantQrOdoo8, gmoncada/posRestaurantQrOdoo8, iceship/posRestaurantQrOdoo8, jason156/Odoo-Addons-4, kmee/web, osvalr/Odoo-Addons, pe03re/posRestaurantQrOdoo8, peterfm/posRestaurantQrOdoo8, phoenixsampras/posRestaurantQrOdoo8, prodoo/posRestaurantQrOdoo8, railsuser2014/posRestaurantQrOdoo8, sc4you/posRestaurantQrOdoo8, szufisher/web, tymiles003/posRestaurantQrOdoo8, ubic135/posRestaurantQrOdoo8, wahhid/posRestaurantQrOdoo8, and westlyou/Odoo-Addons-4

<img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> <a name="web-auto-refresh"></a> <h2>Web Auto Refresh</h2> <p>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.</p> <a name="installation"></a> <h2>Installation</h2> <p>To install this module, you need to:</p> <a name="configuration"></a> <h2>Configuration</h2> <p>To configure this module, you need to:</p> <ol class="arabic simple"> <li>go to setting-&gt;technical-&gt;actions-&gt;window actions, find the desired action, activate the auto search Check box</li> <li><dl class="first docutils"> <dt>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</dt> <dd>model.env['bus.bus'].sendone('auto_refresh', model._name)</dd> </dl> </li> </ol> <a name="usage"></a> <h2>Usage</h2> <p>To use this module, you need to:</p> <blockquote> <ol class="arabic simple"> <li>goes to the list or kanban view of the selected model, in display mode</li> <li>in another session(login via another browser and other computer), create, change or delete records of the model, then save</li> <li>the original list or kanban view in display mode will be auto refreshed</li> </ol> </blockquote> <p>For further information, please visit:</p> <ul class="simple"> <li><a class="reference external" href="https://www.odoo.com/forum/help-1">https://www.odoo.com/forum/help-1</a></li> </ul> <a name="known-issues-roadmap"></a> <h2>Known issues / Roadmap</h2> <ul class="simple"> <li><dl class="first docutils"> <dt>From Techical point of view, the high level implementation detail is as following</dt> <dd><ol class="first last arabic"> <li>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')</li> <li>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()</li> </ol> </dd> </dl> </li> </ul> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/{project_repo}/issues">GitHub Issues</a>. 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 <a class="reference external" href="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**">here</a>.</p> <a name="credits"></a> <h2>Credits</h2> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Fisher Yu &lt;<a class="reference external" href="mailto:szufisher&#64;gmail.com">szufisher&#64;gmail.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h3>Maintainer</h3> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>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.</p> <p>To contribute to this module, please visit <a class="reference external" href="http://odoo-community.org">http://odoo-community.org</a>.</p>