Merge branch 'edge' of github.com:webnotes/wnframework into webshop
This commit is contained in:
commit
08e3639dfb
1 changed files with 2 additions and 1 deletions
|
|
@ -101,7 +101,8 @@ def rename_doctype(doctype, old, new, force=False):
|
|||
def rename_mapper(new):
|
||||
for mapper in webnotes.conn.sql("""select name, from_doctype, to_doctype
|
||||
from `tabDocType Mapper` where from_doctype=%s or to_doctype=%s""", (new, new), as_dict=1):
|
||||
rename_doc("DocType Mapper", mapper.name, mapper.from_doctype + "-" + mapper.to_doctype, force=True)
|
||||
if not webnotes.conn.exists("DocType Mapper", mapper.from_doctype + "-" + mapper.to_doctype):
|
||||
rename_doc("DocType Mapper", mapper.name, mapper.from_doctype + "-" + mapper.to_doctype, force=True)
|
||||
|
||||
def update_child_docs(old, new, doclist):
|
||||
# update "parent"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue