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

Hello. I'm using Odoo V13.0, and I want to write a salary rule that allows me to calculate employee's working age and add this money to his/her payslip. 

What I'm thinking is this:

  • First, in salary rule range, I want to calculate the the working age of an employee based on his/her contract.start_date (my problem is that I have no idea how could I get this date in code)

  • After having this working age, I want to set some conditions using it, i.e. if working_age (again, I don't know how to get this variable as well) is less than 1 year, the result is the result, no changes; if it's longer than 1 year, I want to add some money to his/her salary, etc.

How can I write this salary rule? Thanks. 

아바타
취소
관련 게시물 답글 화면 활동
0
1월 17
3592
1
2월 24
2193
1
1월 24
1510
1
7월 23
3915
0
7월 18
3543