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

Hi

I have set a warning on backend of odoo while I update it from website side can we bring that warning on website side?

Ảnh đại diện
Huỷ bỏ

Whats ur need exactly

Tác giả

I have created one web page I need to check one condition and if it fails I need a warning on webiste side actually I have put a constraint in odoo backend can we reproduce same pop up on website ?

Câu trả lời hay nhất

from openerp.exceptions import Warning

...

raise Warning( _( 'Warning Message.' ) )

...

-it normally shows popup warning at client side, you're about something else?

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Temur thanks for your reply. Can we use this warning for website side?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 19
9271
0
thg 11 19
4388
1
thg 7 19
7113
0
thg 7 19
2540
1
thg 5 17
8799