From 9c1e734846c64820fefd807c7a7a1f3ef29aa8f7 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 29 Jun 2023 08:35:47 +0000 Subject: [PATCH] [FIX] core: wrong docstring closes odoo/odoo#126890 X-original-commit: cd6ed74ab9da0127dcb517177744b44ffcd8558a Signed-off-by: Victor Feyens (vfe) --- odoo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: