mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
merge, update bean validations
This commit is contained in:
9
patches/february_2013/p09_remove_cancelled_warehouses.py
Normal file
9
patches/february_2013/p09_remove_cancelled_warehouses.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
for w in webnotes.conn.sql("""select name from `tabWarehouse` where docstatus=2"""):
|
||||
try:
|
||||
webnotes.delete_doc("Warehouse", w[0])
|
||||
except webnotes.ValidationError:
|
||||
pass
|
||||
|
||||
0
patches/march_2013/__init__.py
Normal file
0
patches/march_2013/__init__.py
Normal file
6
patches/march_2013/update_po_prevdoc_doctype.py
Normal file
6
patches/march_2013/update_po_prevdoc_doctype.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import webnotes
|
||||
def execute():
|
||||
webnotes.conn.sql("""update `tabPurchase Order Item` set prevdoc_doctype = 'Material Request'
|
||||
where prevdoc_doctype = 'Purchase Request'""")
|
||||
webnotes.conn.sql("""update `tabSupplier Quotation Item`
|
||||
set prevdoc_doctype = 'Material Request' where prevdoc_doctype = 'Purchase Request'""")
|
||||
@@ -201,4 +201,6 @@ patch_list = [
|
||||
'execute:webnotes.reload_doc("accounts", "Print Format", "Sales Invoice Spartan") # 2013-02-26',
|
||||
"execute:(not webnotes.conn.exists('Role', 'Projects Manager')) and webnotes.doc({'doctype':'Role', 'role_name':'Projects Manager'}).insert()",
|
||||
"execute:(not webnotes.conn.exists('UOM', 'Hour')) and webnotes.doc({'uom_name': 'Unit', 'doctype': 'UOM', 'name': 'Hour'}).insert()",
|
||||
"patches.february_2013.p09_remove_cancelled_warehouses",
|
||||
"patches.march_2013.update_po_prevdoc_doctype",
|
||||
]
|
||||
Reference in New Issue
Block a user