微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

单击按钮时显示弹出消息:Odoo

如何解决单击按钮时显示弹出消息:Odoo

messages=[]
for orders in purchase_orders:     
     message = _('Purchase Order %s has been generated for the Product %s ') % \
                  (orders['purchase_order'],orders['product'] )
               
     messages.append(message)
              
     warning_mess = {
                    'title': _('Purchase Order Created'),'message': messages
      }
return{'warning':warning_mess}
            

enter image description here

我想在单击按钮时显示如上图的输出

例如: 而不是成功创建的任务:

已为产品 pro1 生成采购订单 P876633 已为产品 apple 生成采购订单 P21e33

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。