mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
[cleanup] [minor] price list field rename (wip), set default supplier from item, make demo - purchase cycle (wip)
This commit is contained in:
23
patches/august_2013/p02_rename_price_list.py
Normal file
23
patches/august_2013/p02_rename_price_list.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
for t in [
|
||||
("Supplier Quotation", "price_list_name", "buying_price_list"),
|
||||
("Purchase Order", "price_list_name", "buying_price_list"),
|
||||
("Purchase Invoice", "price_list_name", "buying_price_list"),
|
||||
("Purchase Receipt", "price_list_name", "buying_price_list"),
|
||||
("Quotation", "price_list_name", "selling_price_list"),
|
||||
("Sales Order", "price_list_name", "selling_price_list"),
|
||||
("Delivery Note", "price_list_name", "selling_price_list"),
|
||||
("Sales Invoice", "price_list_name", "selling_price_list"),
|
||||
("POS Setting", "price_list_name", "selling_price_list"),
|
||||
("Shopping Cart Price List", "price_list", "selling_price_list"),
|
||||
("Item Price", "price_list_name", "price_list"),
|
||||
("BOM", "price_list", "buying_price_list"),
|
||||
]:
|
||||
webnotes.conn.sql_ddl("alter table `tab%s` change `%s` `%s` varchar(180)" % t)
|
||||
|
||||
webnotes.conn.sql("""update tabSingles set field='selling_price_list'
|
||||
where field='price_list_name' and doctype='Selling Settings'""")
|
||||
|
||||
webnotes.bean("Selling Settings").save()
|
||||
@@ -252,4 +252,5 @@ patch_list = [
|
||||
"patches.july_2013.p11_update_price_list_currency",
|
||||
"execute:webnotes.bean('Selling Settings').save() #2013-07-29",
|
||||
"patches.august_2013.p01_hr_settings",
|
||||
"patches.august_2013.p02_rename_price_list",
|
||||
]
|
||||
Reference in New Issue
Block a user