Avoid naming collision between table variable in Journal migration from 1.0
This commit is contained in:
1 parent
36c1ff8e75
commit
2105994ca4
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user