Dont copy amended_from and amendment_date in copy_doc

This commit is contained in:
Nabin Hait 2014-06-26 14:47:43 +05:30
parent dce15554f6
commit a714b2d588

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