Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
7664 Visualizzazioni

Hi,

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

F.g ' Oder is Confirmed'

Avatar
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 25
1257
2
nov 24
2393
4
feb 24
12765
1
gen 24
1858
0
mag 23
2115