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 that would sum all the lines on a payslip input based on each input line's contract.
I'm new to Python, started reading some code but can't figure out how to get the contract.wage for each input line and sum it.
I tried something like
for input_line in payslip.input_line_ids: result += input_line.contract.wage
Of course, this is wrong. Any ideas?
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: 2/20/13, 6:19 PM|
|Seen: 3113 times|
|Last updated: 3/16/15, 8:10 AM|