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

so I want to use


raise warning()

on odoo 14
but what i got :


raise exception.with_traceback(None) from new_cause
Warning: Maaf Produk harus diisi

does raise warning no longer exist in odoo 14?
and I can't use raise UserError() because I think it's not good for users

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

im sorry i forget to import Warning in

from odoo.exceptions import UserError,Warning
 hhe

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
سبتمبر 21
12193
1
ديسمبر 18
5650
1
يوليو 23
4580
5
مايو 25
8328
1
أبريل 25
1280