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#60358 Issue: #54199 Taskid: 2309192 X-original-commit: af21dba516de688743f75e6ffb3bc3341578e37a Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by: LucasLefevre <lul@odoo.com>
5 lines
133 B
Python
5 lines
133 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import test_access_rights
|