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

hi,

i want to add salary rule in odoo 

for that i awnt to set python formula like 

result=-(contract.wage/30)*worked_days.Unpaid.number_of_days 

and in condition i added following python code 

result=worked_days.Unpaid and worked_days.Unpaid.number_of_days or False

it i make salary rule as "always true" so it return "error in python code" in that


形象
丢弃
最佳答案

also make sure the contract is running!

形象
丢弃
最佳答案

Hi,

please check  your rule code is correct as 'Unpaid'. If my answer is not as you wish then you have to elaborate your question. Please give more details

形象
丢弃
相关帖文 回复 查看 活动
0
6月 17
3443
0
11月 16
4915
1
10月 24
2271
1
7月 25
2615
2
7月 22
11181