[IMP] web,point_of_sale: debug mode
Keep debug mode status when going on another location url (backend, frontend, pos, ...).
This commit is contained in:
@@ -788,10 +788,15 @@ var ActionManager = Widget.extend({
|
||||
});
|
||||
},
|
||||
ir_actions_act_url: function (action) {
|
||||
var url = action.url;
|
||||
if (session.debug && url && url.length && url[0] === '/') {
|
||||
url = $.param.querystring(url, 'debug');
|
||||
}
|
||||
|
||||
if (action.target === 'self') {
|
||||
framework.redirect(action.url);
|
||||
framework.redirect(url);
|
||||
} else {
|
||||
window.open(action.url, '_blank');
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
return $.when();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user