在odoo v9中关闭向导后成功显示消息 [英] Show successfully message after close wizard in odoo v9
本文介绍了在odoo v9中关闭向导后成功显示消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在odoo 9中关闭向导后成功显示消息的最佳解决方案是什么?
What is best solution for display successfully message after close wizard in odoo 9?
在右上角有任何小弹出窗口吗?
Any small popup in right corner?
推荐答案
这不是您问题的正确答案,但我也遇到了同样的问题,问题是当用户单击时我必须显示成功提交"消息向导上的提交"按钮.我已经将此作为我的解决方案 我已经做到了
It's not a proper answer to your question but i have faced the same problem, the problem was that i have to display "successfully submitted" message when user click on submit button on a wizard. and i have done this as my solution i have done this
- 我为向导创建了一个类
from odoo import api, fields, models, _
class CustomPopMessage(models.TransientModel):
_name = "custom.pop.message"
name = fields.Char('Message')
- 为自定义向导创建视图
<odoo>
<data>
<record id="custom_pop_message_wizard_view_form" model="ir.ui.view">
<field name="name">custom.pop.message.form</field>
<field name="model">custom.pop.message</field>
<field name="arch" type="xml">
<form string="Custom POP Message">
<field name="name" readonly="1"/>
<footer>
<button string="Close" class="btn-default" special="cancel"/>
</footer>
</form>
</field>
</record>
</data></odoo>
-
按下另一个向导的
- 按钮方法,您可以通过该按钮显示某些弹出式按摩
def my_custom_button_function_for_another_wizard():
return {
'name': 'Message',
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'custom.pop.message',
'target':'new',
'context':{'default_name':"Successfully Submitted."}
}
这篇关于在odoo v9中关闭向导后成功显示消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文