2013-11-20 07:29:58 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2013-04-18 10:51:42 +00:00
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
2013-04-19 10:51:55 +00:00
|
|
|
webnotes.reload_doc("Stock", "DocType", "Delivery Note Item")
|
|
|
|
for dt in ("Journal Voucher Detail", "Sales Taxes and Charges",
|
|
|
|
"Purchase Taxes and Charges", "Delivery Note Item",
|
|
|
|
"Purchase Invoice Item", "Sales Invoice Item"):
|
|
|
|
webnotes.conn.sql_ddl("""alter table `tab%s` alter `cost_center` drop default""" \
|
|
|
|
% (dt,))
|
2013-04-18 10:51:42 +00:00
|
|
|
webnotes.reload_doc(webnotes.conn.get_value("DocType", dt, "module"), "DocType", dt)
|