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

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
11944
1
ديسمبر 18
5479
1
يوليو 23
4345
5
مايو 25
7944
1
أبريل 25
1113