콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
6469 화면

hi,

i want to add salary rule in odoo 

for that i awnt to set python formula like 

result=-(contract.wage/30)*worked_days.Unpaid.number_of_days 

and in condition i added following python code 

result=worked_days.Unpaid and worked_days.Unpaid.number_of_days or False

it i make salary rule as "always true" so it return "error in python code" in that


아바타
취소
베스트 답변

also make sure the contract is running!

아바타
취소
베스트 답변

Hi,

please check  your rule code is correct as 'Unpaid'. If my answer is not as you wish then you have to elaborate your question. Please give more details

아바타
취소
관련 게시물 답글 화면 활동
0
6월 17
3554
0
11월 16
5026
1
10월 24
2443
1
7월 25
2824
2
7월 22
11331