odoo-13.0/addons/web/static/src/js/core/misc.js
//  * If params.wait, reload will wait the openerp server to be reachable before reloading
If params.wait, reload will wait the openerp server to be reachable before reloading
If params . wait reload will wait the openerp server to be reachable before reloading
function Reload(parent, action) {
    var params = action.params || {};
    var menu_id = params.menu_id || false;
    var l = window.location;
    var sobj = $.deparam(l.search.substr(1));
    if (params.url_search) {
        sobj = _.extend(sobj, params.url_search);
    }
    var search = '?' + $.param(sobj);
    var hash = l.hash;
    if (menu_id) {
        hash = "#menu_id=" + menu_id;
    }
    var url = l.protocol + "//" + l.host + l.pathname + search + hash;
    core.bus.trigger('clear_cache');
    redirect(url, params.wait);
}
function Reload ( parent , action ) { var params = action . params || { } ; var menu_id = params . menu_id || false ; var l = window . location ; var sobj = $ . deparam ( l . search . substr ( 1 ) ) ; if ( params . url_search ) { sobj = _ . extend ( sobj , params . url_search ) ; } var search = '?' + $ . param ( sobj ) ; var hash = l . hash ; if ( menu_id ) { hash = "#menu_id=" + menu_id ; } var url = l . protocol + "//" + l . host + l . pathname + search + hash ; core . bus . trigger ( 'clear_cache' ) ; redirect ( url , params . wait ) ; }
If params.wait, reload will wait the openerp server to be reachable before reloading
If params . wait reload will wait the openerp server to be reachable before reloading
// Clear cache