Popup Message
This module is useful to create custom popup message
Wasting your important time to make popup message wizard like Alret, Success, Warnings?
We will help you to make this procedure quick, just add few line of code in your project to open the popup message wizard.
Key features:
- Easy to use and flexible.
- you can create alerts, warnings, success messages by just few line of code.
- Time saving.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Why can't I play it
My popover won't pop up. The code is the same as above
How does this module work?
Just thinking how does this module work? Or rather how this should be used? The code snippet you provided above and advised to put where the message needs to be shown has a "return {}" statement in itself. Where would be control be returned and would it not impact the overall flow of the .py file in which this code has been put in? view = self.env.ref('sh_message.sh_message_wizard') view_id = view and view.id or False context = dict(self._context or {}) context['message'] = message_to_display return { 'name': title_to_display, 'type': 'ir.actions.act_windows', 'view_type': 'form', 'view_mode': 'form', 'res_model': 'sh.message.wizard', 'views': [(view.id, 'form')], 'view_id': view.id, 'target': 'new', 'context': context, }