odoo owl前端 action 通知

 

 

setup (){ 
     this.action = useService("action");
}


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

  

 

        this.action.doAction({
            type: "ir.actions.act_url",
            url: url,
        });

  

posted @ 2023-10-03 15:06  CrossPython  阅读(45)  评论(0编辑  收藏  举报