[IMP] openerp: models.py: use LOG_ACCESS_COLUMNS constant

This commit is contained in:
Aaron Bohy
2016-06-27 15:30:45 +02:00
parent 5aac400e33
commit d9cc893dbc
+1 -1
View File
@@ -3521,7 +3521,7 @@ class BaseModel(object):
"""
fields = ['id']
if self._log_access:
fields += ['create_uid', 'create_date', 'write_uid', 'write_date']
fields += LOG_ACCESS_COLUMNS
quoted_table = '"%s"' % self._table
fields_str = ",".join('%s.%s' % (quoted_table, field) for field in fields)
query = '''SELECT %s, __imd.noupdate, __imd.module, __imd.name