[fix] track_seen is optional
This commit is contained in:
parent
28b2710fa6
commit
acbd16bbf3
1 changed files with 1 additions and 1 deletions
|
|
@ -678,7 +678,7 @@ class Document(BaseDocument):
|
|||
|
||||
def reset_seen(self):
|
||||
'''Clear _seen property and set current user as seen'''
|
||||
if self.meta.track_seen:
|
||||
if getattr(self.meta, 'track_seen', False):
|
||||
self._seen = json.dumps([frappe.session.user])
|
||||
|
||||
def notify_update(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue