Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7677 Lượt xem

Hi,

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

F.g ' Oder is Confirmed'

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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 
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
1266
2
thg 11 24
2397
4
thg 2 24
12778
sale / delivery Đã xử lý
1
thg 1 24
1863
0
thg 5 23
2117