psycopg2.extras.execute_values was introduced in PR #101237 however it pypasses the override logic for cr.execute. As a result 1. --log-sql cannot log these queries 2. assertQueryCount cannot notice these queries ... This commit create a new api cr.execute_values to support the same SQL feature without losing the override logic for cr.execute closes odoo/odoo#131190 Related: odoo/enterprise#47374 Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>