refactored the find odoo id by entity