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

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
11687
1
ديسمبر 18
5266
1
يوليو 23
4112
5
مايو 25
7513
1
أبريل 25
877