Sfoglia il codice sorgente

fix: dont db_set on unsaved document

(cherry picked from commit 1bd61d5c25)
version-14
Ankush Menat 2 anni fa
committed by Mergify
parent
commit
798206c3b3
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      frappe/model/document.py

+ 3
- 0
frappe/model/document.py Vedi File

@@ -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,


Caricamento…
Annulla
Salva