单击按钮时显示弹出消息: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 (将#修改为@)