forked from Techsystech/web
[IMP] black, eslint
parent
8c2bdbee95
commit
7bcb779f84
|
@ -12,9 +12,7 @@
|
|||
"license": "AGPL-3",
|
||||
"category": "Web",
|
||||
"depends": ["web"],
|
||||
"data": [
|
||||
"security/ir.model.access.csv"
|
||||
],
|
||||
"data": ["security/ir.model.access.csv"],
|
||||
"assets": {
|
||||
"web.assets_backend": [
|
||||
"web_ir_actions_close_wizard_refresh_view/static/src/js/web_ir_actions_close_wizard_refresh_view.js"
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
/** @odoo-module **/
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import {registry} from "@web/core/registry";
|
||||
import {useService} from "@web/core/utils/hooks";
|
||||
|
||||
async function executeCloseAndRefreshView({ env, action, options }) {
|
||||
async function executeCloseAndRefreshView({env, action, options}) {
|
||||
// env.services.ui.block();
|
||||
const actionService = env.services['action'];
|
||||
const originalAction = action._originalAction;
|
||||
return actionService.doAction(
|
||||
{'type': "ir.actions.act_window_close"},
|
||||
{'onClose': function() {actionService.doAction(originalAction);}}
|
||||
{
|
||||
'onClose': function() {
|
||||
actionService.doAction(originalAction);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue