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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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,
Are there any news about this subject?
I've opened this issue 25 days ago on GITHUB, but still no response: https://github.com/odoo/odoo/issues/4438
I tried putting this code in a salary rule, but not calculated correctly!!
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 name="code">PREMIA</field>
<field eval="5" name="sequence"/>
<field eval="1" name="appears_on_payslip"/>
<field name="condition_range">contract.wage</field>
<field name="company_id" ref="base.main_company"/>
<field eval="25.0" name="amount_percentage"/>
<field name="condition_select">none</field>
<field name="amount_percentage_base">PREMIA</field>
<field name="amount_select">code</field>
<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"/>
<field name="quantity">1.0</field>
</record>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 23
|
1887 | ||
|
3
May 22
|
10980 | ||
|
2
Jul 24
|
11006 | ||
|
0
May 16
|
3435 | ||
|
8
Feb 24
|
13029 |
in details pls... Where can I write this code? and Why -if i defined the bonus directly in "Other Input"- it doesn't work?
I tried putting this code in a salary rule, but not worked!!
Follow at: https://github.com/odoo/odoo/issues/4438
Thx Med, Can you test it on Odoo v8, rather than OpenERP v7?
Zbik, Please tell me how can I use your code? and where?