diff --git a/odoo/models.py b/odoo/models.py index f352dae45cc..6327199c9a3 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -3097,6 +3097,9 @@ class BaseModel(object): _('The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: %s, Operation: %s)') % \ (self._name, 'read') ) + _logger.info( + _('The requested operation cannot be completed due to record rules: Document type: %s, Operation: %s, Records: %s, User: %s') % \ + (self._name, 'read', ','.join([str(r.id) for r in self][:6]), self._uid)) forbidden._cache.update(FailedValue(exc)) @api.multi