[cleanup] moved for territory, price list and item price doctype from setup to stock
This commit is contained in:
parent
9304396e17
commit
0b39e95011
@ -6,7 +6,7 @@ import webnotes
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
webnotes.reload_doc("selling", "doctype", "shopping_cart_price_list")
|
webnotes.reload_doc("selling", "doctype", "shopping_cart_price_list")
|
||||||
webnotes.reload_doc("setup", "doctype", "item_price")
|
webnotes.reload_doc("stock", "doctype", "item_price")
|
||||||
|
|
||||||
for t in [
|
for t in [
|
||||||
("Supplier Quotation", "price_list_name", "buying_price_list"),
|
("Supplier Quotation", "price_list_name", "buying_price_list"),
|
||||||
|
@ -7,8 +7,8 @@ from webnotes.utils import cint
|
|||||||
import MySQLdb
|
import MySQLdb
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
webnotes.reload_doc("setup", "doctype", "price_list")
|
webnotes.reload_doc("stock", "doctype", "price_list")
|
||||||
webnotes.reload_doc("setup", "doctype", "item_price")
|
webnotes.reload_doc("stock", "doctype", "item_price")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for price_list in webnotes.conn.sql_list("""select name from `tabPrice List`"""):
|
for price_list in webnotes.conn.sql_list("""select name from `tabPrice List`"""):
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
webnotes.reload_doc("setup", "doctype", "for_territory")
|
webnotes.reload_doc("stock", "doctype", "for_territory")
|
||||||
webnotes.reload_doc("setup", "doctype", "price_list")
|
webnotes.reload_doc("stock", "doctype", "price_list")
|
||||||
webnotes.reload_doc("accounts", "doctype", "sales_taxes_and_charges_master")
|
webnotes.reload_doc("accounts", "doctype", "sales_taxes_and_charges_master")
|
||||||
webnotes.reload_doc("accounts", "doctype", "shipping_rule")
|
webnotes.reload_doc("accounts", "doctype", "shipping_rule")
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
webnotes.reload_doc("setup", "doctype", "item_price")
|
webnotes.reload_doc("stock", "doctype", "item_price")
|
||||||
|
|
||||||
webnotes.conn.sql("""update `tabItem Price` ip, `tabItem` i
|
webnotes.conn.sql("""update `tabItem Price` ip, `tabItem` i
|
||||||
set ip.item_name=i.item_name, ip.item_description=i.description
|
set ip.item_name=i.item_name, ip.item_description=i.description
|
||||||
|
@ -5,8 +5,8 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
webnotes.reload_doc("setup", "doctype", "price_list")
|
webnotes.reload_doc("stock", "doctype", "price_list")
|
||||||
webnotes.reload_doc("setup", "doctype", "item_price")
|
webnotes.reload_doc("stock", "doctype", "item_price")
|
||||||
webnotes.reload_doc("stock", "doctype", "item")
|
webnotes.reload_doc("stock", "doctype", "item")
|
||||||
|
|
||||||
webnotes.conn.sql("""update `tabItem Price` set parenttype='Price List',
|
webnotes.conn.sql("""update `tabItem Price` set parenttype='Price List',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user