record versioning must ignore tables without _id field.

This commit is contained in:
Michele Comitini
2013-06-24 00:52:15 +02:00
parent 285811f852
commit b632970960
+1 -1
View File
@@ -1450,7 +1450,7 @@ class Auth(object):
"""
tables = [table for table in tables]
for table in tables:
if 'modified_on' in table.fields() and not current_record in table.fields():
if '_id' in table.fields() and 'modified_on' in table.fields() and not current_record in table.fields():
table._enable_record_versioning(
archive_db=archive_db,
archive_name=archive_names,