Hi,
Can anyone help me with this?
I need a popup/alert everytime the user(s) set the selling price less than the cost price, so that they would have to set the selling price equal to or greater than the cost price.
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
Can anyone help me with this?
I need a popup/alert everytime the user(s) set the selling price less than the cost price, so that they would have to set the selling price equal to or greater than the cost price.
Thanks.
from openerp.exceptions import ValidationError
#check your desired condition....
raise ValidationError("""your alert message goes here""")
Hope this will helps you
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
1
nov 25
|
521 | |||
|
3
apr 25
|
1945 | |||
|
1
ago 24
|
3052 | |||
|
3
mag 24
|
13299 | |||
|
POS Session wont close
Risolto
|
1
set 23
|
4889 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
You can use "@api.constrains".
@api.constrains("your_field")
def alert(self):
if ??<??:
raise exceptions.ValidationError(u"Your Alert")