From efa6379b92cbf86215b956ec20387e059f07ae0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 23 Jul 2026 11:37:36 +0200 Subject: [PATCH] Calculate the number of parameters in INSERT query using the columns list The column names list does not contain the create_uid nor create_date columns instead of columns list. Closes #14800 --- trytond/trytond/model/modelsql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/model/modelsql.py b/trytond/trytond/model/modelsql.py index de0054191a..6459dbc360 100644 --- a/trytond/trytond/model/modelsql.py +++ b/trytond/trytond/model/modelsql.py @@ -1016,7 +1016,7 @@ class ModelSQL(ModelStorage): vlist = ( s for s in grouped_slice( vlist, - backend.MAX_QUERY_PARAMS // (len(column_names) + 1))) + backend.MAX_QUERY_PARAMS // (len(columns) + 1))) else: vlist = ([v] for v in vlist)