Hi
I am traying to add warning when customer have a balance i have used
raise UserError("Customer has balance!")
it is working but it will block it to create SO i need some thing just a simple warning not blocking any one can help?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
I am traying to add warning when customer have a balance i have used
raise UserError("Customer has balance!")
it is working but it will block it to create SO i need some thing just a simple warning not blocking any one can help?
If you want to create a SO and after open a message with warning, you can use a simple wizard object with a form, in a field called "message" you can setup the default text to show and a button for close it. I create a module but not converted in new version, but if you need I can migrate.
Hi,
Try use the following
raise Warning(_("Customer has balance!"))
Regards
Hi
when i using the code i will get server error
RPC_ERROR
Odoo Server Error
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
3
ene 25
|
4074 | ||
Restrict Studio ,to users
Resuelto
|
|
1
dic 24
|
2366 | |
|
1
oct 22
|
2512 | ||
|
0
dic 21
|
2147 | ||
|
2
mar 24
|
4302 |
Is it based on a button action or at the time of save or on changing any field value?
It is based on a button action
From: K Ch Kumar Jagabattula <notifications@mail.odoo.com>
Sent: Monday, June 6, 2022 4:21 PM
To: sales@gyeongcc.com
Subject: Re: Raise Warning
View Forum Post
Is it based on a button action or at the time of save or on changing any field value?
--
K Ch Kumar Jagabattula
Sent by Odoo S.A. using Odoo.