odoo 右上角显示提示

右上角提示的js代码

self.displayNotification({
    
    
     title: "提示",
     message: '请选择要操作的数据!!',
     type: 'danger',
     sticky: false});

type 有多种类型,提示的样式会根据类型展示不同的样式
查到共有,danger,warning,info,success几种

  • danger 样式

在这里插入图片描述

  • warning
    在这里插入图片描述
  • info
    在这里插入图片描述
  • success
    在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42464956/article/details/108630506