cursor factory moved to get_pool().db.cursor() on Odoo