Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
8047 Widoki

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"/>
        </tree>
    </field>
</record>
Awatar
Odrzuć

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

Autor

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 23
2799
2
gru 23
17935
1
mar 15
4912
0
lip 25
11275
1
sty 17
4264