Ver código fonte

fix: dont db_set on unsaved document

(cherry picked from commit 1bd61d5c25)
version-14
Ankush Menat 2 anos atrás
committed by Mergify
pai
commit
798206c3b3
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      frappe/model/document.py

+ 3
- 0
frappe/model/document.py Ver arquivo

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


Carregando…
Cancelar
Salvar