diff options
| author | David Arnold <dar@xoe.solutions> | 2018-12-03 01:45:58 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-12-07 10:02:12 +0000 |
| commit | 9a9578143913ab4cbc7b57b9eee50ca49a9121e1 (patch) | |
| tree | 01bb9960903fdccb10dc8bc8b59ecefe88a9e4cd /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | f0d5a5ba133aca6f9f426fefee6de5fe2cfc6d5d (diff) | |
[FIX] hr_payroll: Fix localdict ambiguity on rule computation
Purpose
=======
On a payslip rule computation you can return 3 parameters:
- result_qty
- result_rate
- result
From this, we compute the total amount as following:
tot_rule = amount * qty * rate / 100.0
If we set parameters result_qty=0 or result_rate=0 to force the tot_rule to
be equal to 0, then their values are set to the default one, which is ambiguous.
So
result_qty = 0
result_rate = 0
Become
qty=1
amount=100
We can't fix this in a stable release as this could imply unwanted
behavior changes for customers, and also quite difficult to spot.
closes odoo/odoo#29206
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
