Skip to Content
Menu
This question has been flagged
2 Replies
6295 Views

Hi,

After confirmed the sale order needs to show up the some alert.

F.g ' Oder is Confirmed'

Avatar
Discard
Best Answer

In the end of function return, call wizard and say "Order is confirmed".

return {
'name': _('Alert'),
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'alert.message',
'target': 'new',
}
Write form view for 'alert.message'

It will show as pop up window.

Avatar
Discard
Best Answer

Hello,

This module will help you to achieve: https://apps.odoo.com/apps/modules/11.0/web_notify/

self.env.user.notify_info('My information message')

or

self.env.user.notify_warning('My marning message')
After installing Module add this code in the function.

regards,
Silvestar 
Avatar
Discard
Related Posts Replies Views Activity
2
Nov 24
475
4
Feb 24
10159
1
Jan 24
369
0
May 23
831
4
Apr 23
38293