向用户显示消息框
odoo12-addon-web-ir-actions-act-window-message的Python项目详细描述
此模块允许在客户端显示一个作为按钮结果的消息弹出窗口。在
目录
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
Contributors
- 霍尔格·布伦恩<;hbrunn@therp.nl>
- Zakaria Makrelouf(ACSONE SA/NV)<;z.makrelouf@gmail.com>
- 本杰明·威利(ACSONE SA/NV)<;benjamin.willig@acsone.eu>
- Ioan Galan(研究生73)<;ioan@studio73.es>
- Abraham Anes(研究73)<;abraham@studio73.es>
Maintainers
本模块由OCA维护。在
OCA,或奥多社区协会,是一个非营利性组织 其任务是支持Odoo特性和 促进其广泛使用。在
此模块是GitHub上OCA/web项目的一部分。在
欢迎您投稿。要了解如何访问https://odoo-community.org/page/Contribute。在
- 项目
标签: