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