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 want to create a new salary rule named Hill .
Category : Allowance Condition is always true Its calculation is based on the Net salary of the employee. Ie 10% of the Net salary
Now i will give the python code as " result = (categories.NET) * 0.10 " But it will not give any result in payslip computation .
How can be obtain this result in the payslip.
- i think your rule Hill is an allowance so it will be in a net salary rule at least(the first or the seconde net salary rule).
- when you based Hill on the net you are obliged to have two net salary rules. One(code=NET1) to calculate Hill and one(NET2) to get the final result(final net salary rule).
- you must put Hill sequence between NET1 and NET2.
i don't know how you define your categories.NET but i suggest you to do this for rule Hill python code result = NET1* 10%
NET2 = NET1 + Hill
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: 1/23/14, 8:06 AM|
|Seen: 1195 times|
|Last updated: 3/16/15, 8:10 AM|