Rushabh Mehta | 5f1d57e | 2012-12-27 14:05:02 +0530 | [diff] [blame] | 1 | import webnotes |
| 2 | |
| 3 | def execute(): |
| 4 | webnotes.conn.sql("""update tabAddress set address_title = customer_name where ifnull(customer_name,'')!=''""") |
| 5 | webnotes.conn.sql("""update tabAddress set address_title = supplier_name where ifnull(supplier_name,'')!=''""") |
| 6 | webnotes.conn.sql("""update tabAddress set address_title = sales_partner where ifnull(sales_partner,'')!=''""") |
| 7 | webnotes.reset_perms("Product Settings") |
| 8 | |
| 9 | # move code to new doctype |
| 10 | webnotes.conn.set_value("Website Script", None, "javascript", |
| 11 | webnotes.conn.get_value("Website Settings", None, "startup_code")) |