Update frappe/integrations/doctype/google_contacts/google_contacts.py
Co-Authored-By: Faris Ansari <netchampfaris@users.noreply.github.com>
This commit is contained in:
parent
9366334fbd
commit
8dd559b9e5
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ def update_contacts_to_google_contacts(doc, method=None):
|
|||
"""
|
||||
# Workaround to avoid triggering updation when Event is being inserted since
|
||||
# creation and modified are same when inserting doc
|
||||
if not frappe.db.exists("Google Contacts", {"name": doc.google_contacts}) or doc.modified == doc.creation \
|
||||
if not frappe.db.exists("Google Contacts", {"name": doc.google_contacts}) or doc.is_new() \
|
||||
or not doc.sync_with_google_contacts:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue