Przeglądaj źródła

fix: dont db_set on unsaved document

(cherry picked from commit 1bd61d5c25)
version-14
Ankush Menat 2 lat temu
committed by Mergify
rodzic
commit
798206c3b3
1 zmienionych plików z 3 dodań i 0 usunięć
  1. +3
    -0
      frappe/model/document.py

+ 3
- 0
frappe/model/document.py Wyświetl plik

@@ -1173,6 +1173,9 @@ class Document(BaseDocument):
# to trigger notification on value change
self.run_method("before_change")

if self.name is None:
return

frappe.db.set_value(
self.doctype,
self.name,


Ładowanie…
Anuluj
Zapisz