From d6fc860ed4cda5707ecfe474ef70be841eac8dd3 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 7 Jan 2020 10:15:52 +0100 Subject: [PATCH] Do not use a list of columns on select query python-sql expects the columns as arguments of the select function issue8968 review250491002 --- purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index abbf245b03..e8432f0dbe 100644 --- a/purchase.py +++ b/purchase.py @@ -65,7 +65,7 @@ class ProductSupplierDay(ModelSQL): if table_h.column_exist('weekday'): cursor = transaction.connection.cursor() update = transaction.connection.cursor() - cursor.execute(*day.select([day.id, day.index])) + cursor.execute(*day.select(day.id, day.index)) for day_id, index in cursor: update.execute(*table.update( [table.day], [day_id],