View log
This commit is contained in:
@@ -1198,7 +1198,9 @@ class Purchase(metaclass=PoolMeta):
|
||||
for log in logs:
|
||||
date = getattr(log, 'create_date', None)
|
||||
user = getattr(getattr(log, 'user', None), 'rec_name', None) or ''
|
||||
text = getattr(log, 'action', None) or getattr(log, 'target', None)
|
||||
text = getattr(log, 'change_summary', None)
|
||||
text = text or getattr(log, 'action', None) or getattr(
|
||||
log, 'target', None)
|
||||
if not text:
|
||||
text = getattr(log, 'event_string', None) or log.event
|
||||
activity.append({
|
||||
|
||||
Reference in New Issue
Block a user