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
Dont copy amended_from and amendment_date in copy_doc
version-14
Nabin Hait
11 years ago
parent
dce15554f6
commit
a714b2d588
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
frappe/__init__.py
+ 2
- 0
frappe/__init__.py
View File
@@ -556,6 +556,8 @@ def copy_doc(doc):
newdoc.set("__islocal", 1)
newdoc.owner = None
newdoc.creation = None
newdoc.amended_from = None
newdoc.amendment_date = None
for d in newdoc.get_all_children():
d.name = None
d.parent = None
Write
Preview
Loading…
Cancel
Save