'The registry to the database linked to this request. Can be ``None``
if the current request uses the ``none`` authentication.
.. deprecated:: 8.0
use :attr:`.env`'

@property
def registry(self):

    return (odoo.registry(self.db) if self.db else None)
