Imp/refactoring of the charge function to make tools available for asynchronous services. closes odoo/odoo#27686