summaryrefslogtreecommitdiff
path: root/addons/fleet/tests/__init__.py
AgeCommit message (Collapse)Author
2020-10-20[FIX] fleet: Fix access error on assign driver linked to internal useruso-odoo
Currently, Failing at base/models/res_partner.py#L535 We write on the partner because of the related `plan_to_change_car` When Assign driver linked to internal user without admin rights it gives an error in security rules due to write on partner. So while creating the vehicle when driver is assigned pop the value for related field plan_to_change_car and rewrite the same with sudo. closes odoo/odoo#60353 Issue: #54199 Taskid: 2309192 X-original-commit: af21dba516de688743f75e6ffb3bc3341578e37a Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by: LucasLefevre <lul@odoo.com>