diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-03-11 13:15:23 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-03-19 09:35:31 +0100 |
| commit | b1c4f4058e2a353be3626b97b2f86e7948a14360 (patch) | |
| tree | 2aa3681a768a254464436cb845533a7b011e1b4c /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | b98bc70350098555266a43517b1a39c75a6d2996 (diff) | |
[IMP] hr_holidays: Test access rights post install
Some module can inherit leave models and override some methods.
The overridden method could access some models which require other
access level.
In this case, the access issues would not be found by tests because
other modules are not yet installed.
e.g.
Recently, the `_create_resource_leave` was overridden in hr_payroll and
is reading the employee's contract. A HR user approving a leave
would raise an access error because he doesn't have contract rights.
If the tests would have been executed post install, this bug would
have been detected.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
