Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
6337 Weergaven

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
Annuleer
Auteur

im sorry i forget to import Warning in

from odoo.exceptions import UserError,Warning
 hhe

Gerelateerde posts Antwoorden Weergaven Activiteit
2
sep. 21
11512
1
dec. 18
5145
1
jul. 23
3913
5
mei 25
7137
1
apr. 25
745