Hi
i want to know what is wrong in this rule
if employee.place_of_birth == 'egypt' :
result = contract.wage * 0.10
i want to make rule processed if the employee ( place of birth ) egypt
what can i do to solve this mistake
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
i want to know what is wrong in this rule
if employee.place_of_birth == 'egypt' :
result = contract.wage * 0.10
i want to make rule processed if the employee ( place of birth ) egypt
what can i do to solve this mistake
Create new rule :
in Condition Based on : Python Experssion
Python Condition : SET_YOUR_CONDITION_HERE ''' result = employee.place_of_birth == 'egypt' or false '''
@sameer thanks for ur replay but i created rule like this : Condition based on result = employee.place_of_birth == 'egypt' or false and the rule is result=-contract.wage*0.07 but it give me Wrong python condition defined for salary rule employee.
The condition and rule are totally correct , i use it before and work perfectly . you have to check the salary structure if there is any wrong .
@sameer Can u post ur rule to compare with my rule
condition is =>> result = employee.marital == 'single' or false rule ==>> result=contract.wage*0.7
Thanks sameer it works fine
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 | |
|---|---|---|---|---|
|
|
0
thg 5 22
|
3150 | ||
|
|
1
thg 5 22
|
2666 | ||
|
|
1
thg 1 22
|
2347 | ||
|
How to set input in salary rule
Đã xử lý
|
|
1
thg 10 21
|
14893 | |
|
|
2
thg 1 24
|
15016 |