Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4502 Представления

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
2382
0
дек. 22
1804
1
сент. 19
6596
5
июл. 19
10827