odoo 通知和刷新当前页面

发布时间 2023-10-26 15:44:15作者: CrossPython

 

this.actionService.doAction({
                        'type': 'ir.actions.client',
                        'tag': 'reload',
                    });
            this.actionService.doAction({
                        type: 'ir.actions.client',
                        tag: 'display_notification',
                        params:{
                            'title': "提醒",
                            'message': x,
                            'sticky': false,
                            'className':'bg-danger',}}
                            );