向用户显示消息框

odoo12-addon-web-ir-actions-act-window-message的Python项目详细描述


BetaLicense: AGPL-3OCA/webTranslate me on WeblateTry me on Runbot

此模块允许在客户端显示一个作为按钮结果的消息弹出窗口。在

目录

Usage

依靠这个模块返回

{'type':'ir.actions.act_window.message','title':_('My title'),'message':_('My message'),# optional title of the close button, if not set, will be _('Close')# if set False, no close button will be shown# you can create your own close button with an action of type# ir.actions.act_window_close'close_button_title':'Make this window go away',# Use HTML instead of text'is_html_message':True,# this is an optional list of buttons to show'buttons':[# a button can be any action (also ir.actions.report.xml et al){'type':'ir.actions.act_window','name':'All customers','res_model':'res.partner','view_mode':'form','views':[[False,'list'],[False,'form']],'domain':[('customer','=',True)],},# or if type == method, you need to pass a model, a method name and# parameters{'type':'method','name':_('Yes, do it'),'model':self._name,'method':'myfunction',# list of arguments to pass positionally'args':[self.ids],# dictionary of keyword arguments'kwargs':{'force':True},# button style'classes':'btn-primary',}]}

你负责翻译这些信息。在

Known issues / Roadmap

  • 添加消息类型以区分警告、错误等
  • 让一个消息类型在右上角显示非模态警告

Bug Tracker

bug在GitHub Issues上跟踪。 如果出现问题,请检查是否已报告您的问题。 如果您首先发现它,请帮助我们粉碎它提供详细的和受欢迎的 feedback。在

不要直接联系投稿人关于技术问题的支持或帮助。在

Credits

Authors

  • Therp公司
  • ACSONE公司/内华达州

Contributors

Maintainers

本模块由OCA维护。在

Odoo Community Association

OCA,或奥多社区协会,是一个非营利性组织 其任务是支持Odoo特性和 促进其广泛使用。在

此模块是GitHub上OCA/web项目的一部分。在

欢迎您投稿。要了解如何访问https://odoo-community.org/page/Contribute。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用Jackson解析非同构JSON对象数组   java为什么'Stream<T>::<A>toArray(IntFunction<A[]>)`接受没有绑定的类型参数A?   java在JavaFX2.0中获取给定布局中的节点大小?   java双链接列表创建节点   java使用HashMap添加、删除和查找   java中push_back(C++)的等效方法是什么?   java在Jetty中运行servlet时获得HTTP 500   用java显示包含图像和文本的页面的最简单文档格式   swing从选项卡窗格Java中的不同选项卡访问数据   字符串Java帮助检查登录类使用。CSV文件   java Struts 1.2.9动作链接   包含max元素的java列表   currentNode上的jcr Java空检查   在Android中使用OpenNLP的POSTaggerMe时出现java NullPointerException   java Logback只将消息记录到syslog一次   如何用Java编写构造函数的API文档   java从gallery中获取所有图像并存储在阵列中   java Maven:将外部jar文件夹添加到类路径