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

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
11524
1
ديسمبر 18
5168
1
يوليو 23
3929
5
مايو 25
7183
1
أبريل 25
756