Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
6465 Tampilan

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

Avatar
Buang
Penulis

im sorry i forget to import Warning in

from odoo.exceptions import UserError,Warning
 hhe

Post Terkait Replies Tampilan Aktivitas
2
Sep 21
11618
1
Des 18
5230
1
Jul 23
4036
5
Mei 25
7412
1
Apr 25
850