replace deprecated pooler.get_pool() by registry()

Fixes https://github.com/OCA/connector/issues/20