2012-12-27 14:05:02 +05:30
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
2012-12-27 18:10:45 +05:30
|
|
|
webnotes.reload_doc("utilities", "doctype", "address")
|
|
|
|
|
2012-12-27 14:05:02 +05:30
|
|
|
webnotes.conn.sql("""update tabAddress set address_title = customer_name where ifnull(customer_name,'')!=''""")
|
|
|
|
webnotes.conn.sql("""update tabAddress set address_title = supplier_name where ifnull(supplier_name,'')!=''""")
|
2012-12-27 19:11:04 +05:30
|
|
|
webnotes.conn.sql("""update tabAddress set address_title = sales_partner where ifnull(sales_partner,'')!=''""")
|
|
|
|
|
|
|
|
webnotes.reload_doc("website", "doctype", "product_settings")
|
2012-12-27 14:05:02 +05:30
|
|
|
webnotes.reset_perms("Product Settings")
|
|
|
|
|
|
|
|
# move code to new doctype
|
|
|
|
webnotes.conn.set_value("Website Script", None, "javascript",
|
|
|
|
webnotes.conn.get_value("Website Settings", None, "startup_code"))
|