Odoo Help

Welcome!

This community 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.

2

How to auto refresh view?

By
Shelton
on 7/3/13, 3:29 AM 7,041 views

Does the field auto_refresh in ir.actions.act_window will automatically refresh the view?

The Dashboard auto refresh is not working in v7..

Shelton
on 7/3/13, 5:17 AM
1

Ghanshyam Prajapati

--Ghanshyam Prajapati--
1377
| 4 4 8
Pune, India
--Ghanshyam Prajapati--
OpenERP Developer
Ghanshyam Prajapati
On 7/3/13, 7:12 AM

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.

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

Shelton
on 7/3/13, 7:14 AM

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

Ghanshyam Prajapati
on 7/3/13, 7:27 AM

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..

Shelton
on 7/3/13, 7:43 AM

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?

dave ellis
on 7/16/13, 8:22 AM

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

SalesInq, Ethan Furman
on 11/22/13, 6:46 PM

Doesn't work here either.

Andreas Maertens
on 10/1/15, 4:01 AM
0

Axel Mendoza

--Axel Mendoza--
10238
| 7 7 8
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 an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 12/28/15, 2:22 AM

Another version developed by me for Odoo 8

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

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/3/13, 3:29 AM
Seen: 7041 times
Last updated: 12/28/15, 2:22 AM