تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5383 أدوات العرض

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?

الصورة الرمزية
إهمال

Whats ur need exactly

الكاتب

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 ?

أفضل إجابة

from openerp.exceptions import Warning

...

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

...

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

الصورة الرمزية
إهمال
الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 19
9270
0
نوفمبر 19
4387
1
يوليو 19
7107
0
يوليو 19
2539
1
مايو 17
8798