record versioning must ignore tables without _id field.
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user