Move the definition of class Query to odoo.tools, in order to avoid circular imports when importing Query in core Odoo modules. Also reorganize imports in the impacted modules. Part-of: odoo/odoo#66938
Move the definition of class Query to odoo.tools, in order to avoid circular imports when importing Query in core Odoo modules. Also reorganize imports in the impacted modules. Part-of: odoo/odoo#66938