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.
When I defined some incentives in the "Pay Slip" form inside the "Other Input" section, and generated the pasyslip, it didn't calculated!!
Should I do anything missed?
I've also tested this issue on my own OpenERP (V7.0) instance and on runbot, and i think it's a bug.
The payslip is computed, but the new input is not taken into account.
Edit the file hr_payroll.py (under ../addons/hr_payroll/) around line 486 and add : 'amount': input.amount,
You need to define appropriate "Salary Rules" based on "inputs" variable and python code, for example (fo "Other input" - code BONUS):
result = contract.wage * inputs.BONUS.amount / 100
In V8 this rule works for me:
<record id="l10n_pl_hr_payroll.hr_salary_rule_premia" model="hr.salary.rule">
<field eval="5" name="sequence"/>
<field eval="1" name="appears_on_payslip"/>
<field name="company_id" ref="base.main_company"/>
<field eval="25.0" name="amount_percentage"/>
<field eval="1" name="active"/>
<field name="name">Premia wg bierzącej stawki procentowej pracownika</field>
<field name="amount_python_compute">result = contract.wage * inputs.PREMIA_PRACOWNIKA.amount / 100</field>
<field name="category_id" ref="hr_payroll.ALW"/>
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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/26/14, 4:50 AM|
|Seen: 2381 times|
|Last updated: 3/16/15, 8:10 AM|