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
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
3
dub 25
|
1377 | ||
|
1
srp 24
|
2182 | ||
How to delete POS Sessions! Odoo 16
Vyřešeno
|
|
3
kvě 24
|
11494 | |
POS Session wont close
Vyřešeno
|
|
1
zář 23
|
3713 | |
|
0
srp 23
|
1801 |
You can use "@api.constrains".
@api.constrains("your_field")
def alert(self):
if ??<??:
raise exceptions.ValidationError(u"Your Alert")