Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm trying to define salary rules for employees. I've created an employee, assigned him a user and have created a monthly contract for him. The problem is that when I try to define this python code for City Compensatory Allowance and then go to Employee Payslips, upon clicking on Compute, it says 'wrong Python code defined for City Compensatory Allowance'
Can anyone please help me?
result = -1 if (contract.wage <= 9440): result=200 elif (contract.wage >= 9441 and contract.wage <=13540 ): result=250 elif (contract.wage >= 13541 and contract.wage <= 16980 ): result=300 else: result=350
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/13/14, 3:36 AM|
|Seen: 1228 times|
|Last updated: 3/16/15, 8:10 AM|