Auto Refresh

by ,
Odoo
v 9.0 v 11.0 v 12.0 Third Party 1419
Download for v 9.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Technical Name smile_web_auto_refresh
LicenseAGPL-3
Websitehttp://www.smile.fr
Versions 11.0 9.0 12.0
You bought this module and need support? Click here!

Web Auto Refresh

License: AGPL-3 Smile-SA/odoo_addons

This module is a fork of web_auto_refresh developped by Fisher Yu on Odoo v10. This fork works with all non-edited views, not only with kanban and list views.

Table of contents

Configuration

To configure this module, you need to:

  1. Go to Setting > Technical > Actions > Window Actions, find the desired action, activate the auto search Check box.

  2. Create a server action for the target model, select "Execute python Code" as an action to do then add the following python code:

    model.env['bus.bus'].sendone('auto_refresh', model._name)
    

    This automated action can be applied (when to run) to creation, update or delete per your requirement. It is also possible to force the opening of a page by indicating #action.

    For example: an automatic return to the home page is done by executing the code:

    model.env ['bus.bus'].sendone ('auto_refresh', '#home')
    
  3. Create an automated action for the same model the add the created server action in "Server actions to run".

Usage

(We will take stock.picking as a example model)

  1. Go to Settings > Technical > Actions > Window Actions and activate the auto search:
Window Actions
  1. Go to Settings > Technical > actions > Server Actions and create the action as follow:
Server Action
  1. Go to Settings > Technical > Automation > Automated Actions and create an action as follow:
Create automated action
Add server action
  1. Try to edit and update a field in the target model, then save the changes. The module will automatically refresh the record and the changes will appear in the different sessions.

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.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Corentin POUHET-BRUNERIE
  • Majda EL MARIOULI

Maintainer

This module is maintained by the Smile SA.

Since 1991 Smile has been a pioneer of technology and also the European expert in open source solutions.

Smile SA

This module is part of the odoo-addons project on GitHub.

You are welcome to contribute.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Really great module, both the idea and the execution are good.
by
Obay
on 11/9/22, 8:59 AM



There are no comments yet!