跳至內容
選單
此問題已被標幟
2 回覆
5354 瀏覽次數

    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?

    頭像
    捨棄
    最佳答案

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

    相關帖文 回覆 瀏覽次數 活動
    1
    5月 20
    3475
    0
    12月 19
    3502
    1
    6月 24
    3008
    1
    3月 22
    1472
    0
    8月 21
    2898