Parcourir la source

fix: dont db_set on unsaved document

(cherry picked from commit 1bd61d5c25)
version-14
Ankush Menat il y a 2 ans
committed by Mergify
Parent
révision
798206c3b3
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. +3
    -0
      frappe/model/document.py

+ 3
- 0
frappe/model/document.py Voir le fichier

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


Chargement…
Annuler
Enregistrer