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

    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?

    Awatar
    Odrzuć
    Najlepsza odpowiedź

    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
     

    Awatar
    Odrzuć
    Najlepsza odpowiedź

    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

    Awatar
    Odrzuć

    Hi Boubaker,

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

    Powiązane posty Odpowiedzi Widoki Czynność
    1
    maj 20
    4224
    0
    gru 19
    4169
    1
    cze 24
    3480
    1
    mar 22
    1923
    0
    sie 21
    3310