跳至内容
菜单
此问题已终结
1 回复
13158 查看

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/



形象
丢弃
相关帖文 回复 查看 活动
6
4月 21
18028
0
8月 19
4500
0
2月 19
2987
1
4月 17
5199
3
12月 24
4874