This commit is contained in:
2026-07-25 09:13:12 +02:00
parent 9fa91f1255
commit 99763f10f2
5 changed files with 103 additions and 2 deletions

View File

@@ -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({