Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5830 มุมมอง

    I need to refresh the kanban view of the customer after create a new record using a controller.

    Ex: the kanban view is opened and using an API client i will create a new partner, then that partner should be displayed in the kanban view without refreshing the page manually.

    How can i achieve this?

    Is there any code which i can refer to?

    for example, when we modify a field it will appear on the chatter instantly without refresh the page. Where can i find these code?

    อวตาร
    ละทิ้ง
    คำตอบที่ดีที่สุด

    you have to use long polling to achieve it. follow the link it has a similar case
    https://www.odoo.com/vi_VN/forum/help-1/question/how-to-show-a-popup-window-on-record-creation-like-the-chat-window-156160#answer-156203
     

    อวตาร
    ละทิ้ง
    คำตอบที่ดีที่สุด

    HI Kabeer,

    You can return an ir.actions.client action in order to refresh the current page you have open in Odoo:

    return {
        'type': 'ir.actions.client',
        'tag': 'reload',
    }

    You can find more information about actions, what they do and which options you have in the official docs. You can find this at https://www.odoo.com/documentation/13.0/reference/actions.html

    อวตาร
    ละทิ้ง

    Hi Boubaker,

    Does it will clear the whole breadcrumb of the current position ???

    Related Posts ตอบกลับ มุมมอง กิจกรรม
    1
    พ.ค. 20
    4134
    0
    ธ.ค. 19
    4097
    1
    มิ.ย. 24
    3398
    1
    มี.ค. 22
    1861
    0
    ส.ค. 21
    3233