From 2105994ca431088773ca3b1c8ee74a26a2f20189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 8 Dec 2014 16:12:41 +0100 Subject: [PATCH] Avoid naming collision between table variable in Journal migration from 1.0 --- journal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/journal.py b/journal.py index d2cff6a788..f3fb6b111b 100644 --- a/journal.py +++ b/journal.py @@ -142,8 +142,8 @@ class Journal(ModelSQL, ModelView): # Migration from 1.0 sequence Many2One change into Property if table.column_exist('sequence'): Property = Pool().get('ir.property') - table = cls.__table__() - cursor.execute(*table.select(table.id, table.sequence)) + sql_table = cls.__table__() + cursor.execute(*sql_table.select(sql_table.id, sql_table.sequence)) for journal_id, sequence_id in cursor.fetchall(): Property.set('sequence', cls._name, journal_id, (sequence_id and