diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-11-22 12:02:54 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2017-03-14 15:25:16 +0100 |
| commit | d0fbe51aa00a770f9d3304026a2234dee0b6fdb7 (patch) | |
| tree | 1914b2e2c9251a09f47868d64e91bcdd2760c9ee /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 8ef89c317e2ff3d6c644c104649e81cef549fa10 (diff) | |
[IMP] hr_holidays: Clarify the value of manager_id
Currently the manager fields have this meaning:
* manager_id: employee that approved the leave first;
* manager_id2: employee that approved the leave secondly;
It makes no sense. Furthermore, on the Leaves Dashboard, when you group
by Manager, you group by first approver, which is also a nonsense.
This commit improves the behavior
* rename manager_id and manager_id2 into first_approver_id and
second_approver_id in order to understand their meaning
* add a stored related field manager_id, readonly to avoid modifications
on the employee
* modify the views to only display the real employee manager, the other
values are not valuable on the views
* in code regularly a manager variable is used but is actually the
current employee; a renaming is then applied
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
