Explorar el Código

Merge pull request #1633 from nabinhait/develop

[fix] docstatus should not get copied in copy_doc
version-14
Nabin Hait hace 9 años
padre
commit
da1721d4bf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      frappe/__init__.py

+ 1
- 1
frappe/__init__.py Ver fichero

@@ -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()


Cargando…
Cancelar
Guardar