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

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июн. 17
3443
0
нояб. 16
4915
1
окт. 24
2271
1
июл. 25
2615
2
июл. 22
11181