diff --git a/odoo/models.py b/odoo/models.py index fd6a6d32d2b..e9435e77d28 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -3066,7 +3066,7 @@ class BaseModel(metaclass=MetaModel): :return: provided fields if fields is truthy (or the fields readable by the current user). :rtype: list - :raise AccessDenied: if the user is not allowed to access + :raise AccessError: if the user is not allowed to access the provided fields. """ if self.env.su: