This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix: dont db_set on unsaved document
(cherry picked from commit
1bd61d5c25
)
version-14
Ankush Menat
2 years ago
committed by
Mergify
parent
b79b2d39a6
commit
798206c3b3
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
frappe/model/document.py
+ 3
- 0
frappe/model/document.py
View 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,
Write
Preview
Loading…
Cancel
Save