Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7591 มุมมอง

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 
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 25
1158
2
พ.ย. 24
2328
4
ก.พ. 24
12618
sale / delivery แก้ไขแล้ว
1
ม.ค. 24
1806
0
พ.ค. 23
1988