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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
1
thg 11 25
|
473 | |||
|
3
thg 4 25
|
1932 | |||
|
1
thg 8 24
|
3025 | |||
|
How to delete POS Sessions! Odoo 16
Đã xử lý
|
3
thg 5 24
|
13202 | ||
|
POS Session wont close
Đã xử lý
|
1
thg 9 23
|
4846 |
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")