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
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
3
أبريل 25
|
1432 | ||
|
1
أغسطس 24
|
2268 | ||
|
3
مايو 24
|
11710 | ||
POS Session wont close
تم الحل
|
|
1
سبتمبر 23
|
3806 | |
|
0
أغسطس 23
|
1836 |
You can use "@api.constrains".
@api.constrains("your_field")
def alert(self):
if ??<??:
raise exceptions.ValidationError(u"Your Alert")