summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-01-25 08:23:57 +0000
committerRomainLibert <rli@odoo.com>2019-01-25 10:37:27 +0000
commit607fd6354514432c9ea0d215f3b52cf71e6e479f (patch)
tree738ab05a14acce374011578160efdd8a77f4ef33 /addons/web/static/src/js/fields/basic_fields.js
parent1e1ea00e66686d76a36fa0c19c3e4865e3161031 (diff)
[FIX] hr_fleet: fix access rights with employees without user
Commit 55a48e3 added support for computing car count and car reports for employees without a linked user.. It is computed by accessing the field `address_home_id` (res.partner) to find the driver. However, this field is private. Therefore a user in `fleet_group_manager` has an ACL error when accessing an employee form view which contains a stat button with the car count. This commit compute the car count and the car report with `address_home_id` as sudo to fix the issue. Also fix a typo in attribute `groups` instead of `group` and fix its value from `fleet_manager` to `fleet.fleet_group_manager`.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions