Odoo Help


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.


How do I use auto_refresh on an XML tree view?

AJ Schrafel Paper Corp
on 4/27/13, 3:45 AM 1,687 views

How do I auto_refresh an XML tree view? I have a cron job working in the background that will change the state once a task is complete. I want the tree to update every 20 seconds so that the user will see the state change without refreshing the view.

How can I do this? Here is my code.

<record model="ir.ui.view" id="view_faxing_fax_tree">
    <field name="name">my.mod.tree</field>
    <field name="model">my.mod</field>
    <field name="type">tree</field>
    <field name="auto_refresh">20</field>
    <field name="arch" type="xml">
        <tree string="Faxes" colors="red:state=='send_except'; orange:state=='pending';">
            <field name="name"/>
            <field name="partner_id"/>
            <field name="create_date"/>
            <field name="state"/>

Hi Patently, did you find an initiative to solve this problem?

on 1/30/14, 7:39 AM

no i never found a solution, any tips would be appreciated.

AJ Schrafel Paper Corp
on 1/30/14, 5:45 PM
On 6/11/15, 2:46 AM

you can try my new module https://github.com/szufisher/web/tree/8.0/web_auto_refresh

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

2 follower(s)


Asked: 4/27/13, 3:45 AM
Seen: 1687 times
Last updated: 6/11/15, 2:46 AM