Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
13348 มุมมอง

I want to compute Salary payslips 

Based on the information from the attendance and leaves modules 

so i need to make new rules with python code to compute for example 

worked days (computed by deducting the absence) * wage / 30

and allowance for leave days * wage / 30 


Thank you very much 

อวตาร
ละทิ้ง

hi also i need turkish localization for payroll. anybody can tell me how can do that ? or addon ?

hello Reem were you abel to create your payroll rules for Turkey ?

คำตอบที่ดีที่สุด

There is a list of Available Variables which will be used to specify field's value(as python code) on Salary Rules.

Available variables:

  • payslip: an object containing the payslips.

  • employee: hr.employee object.

  • contract: hr.contract object.

  • rules: an object containing the rules code (previously computed).

  • categories: an object containing the computed salary rule categories (sum of the amount of all rules belonging to that category).

  • worked_days: an object containing the computed worked days.

  • inputs: an object containing the computed inputs.

You can directly access variables from here like

1) worked_days.absense
2) contract.wage

for more info try

https://doc.odoo.com/7.0/book/4/4_11_HR/4_11_HR_payroll/



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
6
เม.ย. 21
18212
0
ส.ค. 19
4624
0
ก.พ. 19
3077
1
เม.ย. 17
5289
3
ธ.ค. 24
5093