forked from Techsystech/web
[IMP] black, eslint
parent
8c2bdbee95
commit
7bcb779f84
|
@ -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"
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
/** @odoo-module **/
|
/** @odoo-module **/
|
||||||
|
|
||||||
import { registry } from "@web/core/registry";
|
import {registry} from "@web/core/registry";
|
||||||
import { useService } from "@web/core/utils/hooks";
|
import {useService} from "@web/core/utils/hooks";
|
||||||
|
|
||||||
async function executeCloseAndRefreshView({ env, action, options }) {
|
async function executeCloseAndRefreshView({env, action, options}) {
|
||||||
// env.services.ui.block();
|
// env.services.ui.block();
|
||||||
const actionService = env.services['action'];
|
const actionService = env.services['action'];
|
||||||
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue