`AccessError` requires the argument `msg`. Therefore, even if this error is catched, we need to provide one, otherwise a `TypeError` is raised. opw-2183184 closes odoo/odoo#44452 X-original-commit: cdefbf8d66e42d88d845dd621e0306cb55c5f79a Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>