What is best solution for display successfully message after close wizard in odoo 9?
Any small popup in right corner?
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."}
}