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 don't understand. Even if the GROSS of the employee is 437.50 $, my condition always return 222... Weird.
if categories.GROSS == 1000:
elif categories.GROSS == 437.50:
See example :
It seems that ther is a confusion between the Category "GROSS" and the rule "GROSS" !
Usually, categories.GROSS means the sum of all rules which belong to this category. Do you have any of such rules ?
Look under:Salary Rule Categories Hierarchy
--added after question modification---
I started to edit my answer before you edit your question (I did not see the added image).
My response remains valid.
I suppose that the related rule is AE, in this case just replace categories.GROSS by GROSS.
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: 12/20/14, 1:21 PM|
|Seen: 1964 times|
|Last updated: 3/16/15, 8:10 AM|