odoo connector: refactoring to make customizations easier