Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7594 Zobrazení

Hi,

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

F.g ' Oder is Confirmed'

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 25
1161
2
lis 24
2331
4
úno 24
12622
1
led 24
1808
0
kvě 23
1990