Fix migration of new date field on Reconciliation

The migration should happen only if the account.move.line table exists
otherwise it is a fresh new installation which doesn't require migration.
This commit is contained in:
Cédric Krier committed 2016-02-03 22:02:19 +01:00
1 parent 006e46a0aa
commit 87d866836b
1 file changed
+1 -1
+1 -1
View File
@@ -502,7 +502,7 @@ class Reconciliation(ModelSQL, ModelView):
super(Reconciliation, cls).__register__(module_name)
# Migration from 3.8: new date field
if not date_exist:
if not date_exist and TableHandler.table_exist(cursor, Line._table):
cursor.execute(*sql_table.update(
[sql_table.date],
line.join(move,