Merge pull request #23050 from anupamvs/stock-entry-type

fix: deleting unused Stock Entry Type
This commit is contained in:
rohitwaghchaure 2020-09-02 11:43:29 +05:30 committed by GitHub
commit efd1ac5840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,3 +25,7 @@ def execute():
doc = frappe.new_doc('Warehouse Type')
doc.name = 'Transit'
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")