跳至內容
選單
此問題已被標幟
2 回覆
7572 瀏覽次數

Hi,

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

F.g ' Oder is Confirmed'

頭像
捨棄
最佳答案

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.

頭像
捨棄
最佳答案

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 
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 25
1152
2
11月 24
2319
4
2月 24
12609
1
1月 24
1800
0
5月 23
1975