在 odoo v9 中关闭向导后显示成功消息

Show successfully message after close wizard in odoo v9

在 odoo 9 中关闭向导后成功显示消息的最佳解决方案是什么?

右上角有小弹出窗口吗?

这不是您问题的正确答案,但我遇到了同样的问题,问题是当用户单击向导上的提交按钮时我必须显示 "successfully submitted" 消息。我已经这样做了作为我的解决方案 我已经做到了

  1. 我已经为向导创建了一个 class
from odoo import api, fields, models, _

class CustomPopMessage(models.TransientModel):
_name = "custom.pop.message"

    name = fields.Char('Message')
  1. 为自定义向导创建视图
    <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>
  1. 另一个向导的按钮方法通过按下您想要显示特定弹出消息的那个按钮
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."} 
            }