Ir al contenido
Menú
Se marcó esta pregunta

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
Descartar
Autor

im sorry i forget to import Warning in

from odoo.exceptions import UserError,Warning
 hhe

Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 21
11512
1
dic 18
5155
1
jul 23
3919
5
may 25
7150
1
abr 25
747