3
0
Fork 0

[IMP] black, eslint

16.0
bobslee 2023-05-20 14:01:11 +02:00
parent 8c2bdbee95
commit 7bcb779f84
2 changed files with 9 additions and 7 deletions

View File

@ -12,9 +12,7 @@
"license": "AGPL-3", "license": "AGPL-3",
"category": "Web", "category": "Web",
"depends": ["web"], "depends": ["web"],
"data": [ "data": ["security/ir.model.access.csv"],
"security/ir.model.access.csv"
],
"assets": { "assets": {
"web.assets_backend": [ "web.assets_backend": [
"web_ir_actions_close_wizard_refresh_view/static/src/js/web_ir_actions_close_wizard_refresh_view.js" "web_ir_actions_close_wizard_refresh_view/static/src/js/web_ir_actions_close_wizard_refresh_view.js"

View File

@ -9,7 +9,11 @@ async function executeCloseAndRefreshView({ env, action, options }) {
const originalAction = action._originalAction; const originalAction = action._originalAction;
return actionService.doAction( return actionService.doAction(
{'type': "ir.actions.act_window_close"}, {'type': "ir.actions.act_window_close"},
{'onClose': function() {actionService.doAction(originalAction);}} {
'onClose': function() {
actionService.doAction(originalAction);
}
}
); );
} }