From d9f44e29556f151079d97dc789790c076f8cd0a4 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 27 Dec 2012 19:11:04 +0530 Subject: [PATCH] reload product settings in address title patch --- patches/december_2012/address_title.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/december_2012/address_title.py b/patches/december_2012/address_title.py index 554d5d4271..fe68154867 100644 --- a/patches/december_2012/address_title.py +++ b/patches/december_2012/address_title.py @@ -5,7 +5,9 @@ def execute(): 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,'')!=''""") - webnotes.conn.sql("""update tabAddress set address_title = sales_partner where ifnull(sales_partner,'')!=''""") + webnotes.conn.sql("""update tabAddress set address_title = sales_partner where ifnull(sales_partner,'')!=''""") + + webnotes.reload_doc("website", "doctype", "product_settings") webnotes.reset_perms("Product Settings") # move code to new doctype