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

Hello there,

We are on Odoo 8.

I use a salary rule to calculate the sum of worked hours in the year. The python code of this salary rule is :

    result = payslip.sum('HEURES', '2015-12-27','2016-12-31') + HEURES


With this actual rule, we will have to create a new rule for each new year. More, if we cancel and revalidate a payslip, for example a payslip for february, it takes all the hours worked in the year instead of the total worked hours until de date_to of this payslip...

Would you know a way to have this rule totally dynamic (using date_to or date_from fields of a payslip, for example)?

Thanks to help!


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 23
1253
1
ก.พ. 23
2381
0
ธ.ค. 22
1804
1
ก.ย. 19
6595
how to sum two fields แก้ไขแล้ว
5
ก.ค. 19
10827