mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
[Rename] Delivery Note Packing Item -> Packed Item
This commit is contained in:
20
patches/october_2013/p06_rename_packing_list_doctype.py
Normal file
20
patches/october_2013/p06_rename_packing_list_doctype.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes, os
|
||||
|
||||
def execute():
|
||||
webnotes.reload_doc("core", "doctype", "doctype")
|
||||
|
||||
tables = webnotes.conn.sql_list("show tables")
|
||||
|
||||
if "tabPacked Item" not in tables:
|
||||
webnotes.rename_doc("DocType", "Delivery Note Packing Item", "Packed Item", force=True)
|
||||
|
||||
webnotes.reload_doc("stock", "doctype", "packed_item")
|
||||
|
||||
os.system("rm -rf app/stock/doctype/delivery_note_packing_item")
|
||||
|
||||
if webnotes.conn.exists("DocType", "Delivery Note Packing Item"):
|
||||
webnotes.delete_doc("DocType", "Delivery Note Packing Item")
|
||||
Reference in New Issue
Block a user