Merge pull request #1633 from nabinhait/develop
[fix] docstatus should not get copied in copy_doc
This commit is contained in:
commit
da1721d4bf
1 changed files with 1 additions and 1 deletions
|
|
@ -836,7 +836,7 @@ def copy_doc(doc, ignore_no_copy=True):
|
|||
if hasattr(d, df.fieldname):
|
||||
d.set(df.fieldname, None)
|
||||
|
||||
fields_to_clear = ['name', 'owner', 'creation', 'modified', 'modified_by']
|
||||
fields_to_clear = ['name', 'owner', 'creation', 'modified', 'modified_by', 'docstatus']
|
||||
|
||||
if not isinstance(doc, dict):
|
||||
d = doc.as_dict()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue