mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
fix: deleting unused Stock Entry Type
This commit is contained in:
@@ -24,4 +24,8 @@ def execute():
|
|||||||
if not frappe.db.exists('Warehouse Type', 'Transit'):
|
if not frappe.db.exists('Warehouse Type', 'Transit'):
|
||||||
doc = frappe.new_doc('Warehouse Type')
|
doc = frappe.new_doc('Warehouse Type')
|
||||||
doc.name = 'Transit'
|
doc.name = 'Transit'
|
||||||
doc.insert()
|
doc.insert()
|
||||||
|
|
||||||
|
frappe.reload_doc("stock", "doctype", "stock_entry_type")
|
||||||
|
frappe.delete_doc_if_exists("Stock Entry Type", "Send to Warehouse")
|
||||||
|
frappe.delete_doc_if_exists("Stock Entry Type", "Receive at Warehouse")
|
||||||
Reference in New Issue
Block a user