콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
7498 화면

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>
아바타
취소

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

작성자

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

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
2
12월 23
2170
2
12월 23
17371
1
3월 15
4452
0
3월 24
10576
1
1월 17
3845