Skip to content

Commit

Permalink
fix: Update Condition Issue Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chintanshah8848 committed Nov 11, 2024
1 parent ae6e578 commit 59a3b7c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frappe/model/base_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,9 @@ def get_unique_columns(self):
return unique_columns

def db_update(self):
if frappe.db.db_type == "postgres":
self.show_unique_validation_message_for_postgress()

if self.get("__islocal") or not self.name:
if frappe.db.db_type == "postgres":
self.show_unique_validation_message_for_postgress()
self.db_insert()
return

Expand Down

0 comments on commit 59a3b7c

Please sign in to comment.