diff options
| author | David Arnold <dar@xoe.solutions> | 2018-08-14 16:38:36 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-11-13 17:05:00 +0000 |
| commit | d1fd939bdb6634900c0abc4205ef3552fb2165aa (patch) | |
| tree | 609479a54c5d9c2b69718839131000ef3a40d8c6 /addons/web/static/src/js/views/basic | |
| parent | b8c5637e7ef4d7da262698cb025a57feca5afda4 (diff) | |
[IMP] hr_payroll: Manage duplicated 'code' on input/worked_days lines
Purpose
=======
Before this commit, inputs (workdays or inputs) could not manage two lines having
the same code (Example: two holidays of the same type in the payslip period).
The result was a wrong computation as only one of the 2 lines was taken into account.
Without even warning the user.
Specification
=============
Put recordsets on the local dictionaries, where previously only a browse record was set.
This requires a modification on the salary rules to make them work (with multiple lines,
otherwise it is still ok).
Example: <field name="quantity">worked_days.WORK100 and worked_days.WORK100.number_of_days</field>
Should become <field name="quantity">worked_days.WORK100 and sum(worked_days.WORK100.mapped('number_of_days'))</field>
closes odoo/odoo#26386
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
