Skip to Content
Menu
This question has been flagged
2 Replies
7681 Rodiniai

Hi,

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

F.g ' Oder is Confirmed'

Portretas
Atmesti
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.

Portretas
Atmesti
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 
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
geg. 25
1272
2
lapkr. 24
2400
4
vas. 24
12781
1
saus. 24
1869
0
geg. 23
2122