Odoo Help

2

1
12 Answers
1
Avatar

Ghanshyam Prajapati

--Ghanshyam Prajapati--

1425
| 4 4 10
Pune, India
--Ghanshyam Prajapati--
OpenERP Developer
Ghanshyam Prajapati
03-07-13 07:12

Try, In action(ir.actions.act_window) of your object (XML file)

<field name="auto_refresh" eval="10"/>

Through this code, your view will be automatically refresh in 10 seconds

Try this,

    <record id="board_your_object_auto_refresh_form" model="ir.ui.view">
        <field name="name">your.object.form</field>
        <field name="model">board.board</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Your Object">
                <hpaned>
                    <child1>
                        <action colspan="4"  height="100" name="%(act_your_object_auto_refresh)d" string="Your Object String"/>
                   </child1>                       
               </hpaned>
            </form>
        </field>
    </record>

here act_your_object_auto_refresh is your action id and no need to put auto_refresh in action.

    <record id="your_object_auto_refresh_dashboard" model="ir.actions.act_window">
        <field name="name">Your Object Dashboard</field>
        <field name="res_model">board.board</field>
        <field name="view_type">form</field>
        <field name="view_mode">form</field>
        <field name="auto_refresh">10</field>
        <field name="usage">menu</field>
        <field name="view_id" ref="board_your_object_auto_refresh_form"/>
    </record>

Hope this work for you.

6 Comments
Shelton
03-07-13 07:14

I've set it for the Dashboard in Window actions, but this is not working

Ghanshyam Prajapati
03-07-13 07:27

Hey Shelton, See my updated answer, Hope it work for you.

Shelton
03-07-13 07:43

Instead of putting it in a new board i tried it in Sales board available in openerp, ie. I changed the auto_refresh value in Settings>>Actions>>Window Actions>>Sales (board) and it is not working..

dave ellis
16-07-13 08:22

Agree auto_refresh under action name "Helpdesk Requests", when set to 2 seconds never refreshes. Think I have seen questions before about this, can anyone confirm this works?

SalesInq, Ethan Furman
22-11-13 18:46

I have also not been able to get this to work. Is there a setting somewhere else that needs adjusting?

Andreas Maertens
01-10-15 04:01

Doesn't work here either.

0
shashank verma
12-02-19 06:21

use this module for 10,11,12 version. Tested and works fine.

Please note auto refresh will  not work when odoo is in debug mode

https://www.odoo.com/apps/modules/12.0/muk_web_client_refresh/

0
Avatar

Axel Mendoza

--Axel Mendoza--
13613
| 8 8 10
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
28-12-15 02:22

Another version developed by me for Odoo 8

https://github.com/aek/odoo_public/tree/8.0/addons/solt_autorefresh

1 Opmerking
Anil R. Kesariya (AKE)
28-08-18 07:42

No More available this repo.

0

Add this two modules

https://github.com/szufisher/web/tree/8.0/bus_enhanced 
https://github.com/szufisher/web/tree/8.0/web_auto_refresh

Configure your desired views to autoreload and enjoy

Stel een vraag
Writer
Labels
Keep Informed
0 volger(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now