[patch] copy customer_address to shipping_address in delivery note

This commit is contained in:
Nabin Hait 2013-07-09 11:42:38 +05:30
parent e03e38db1e
commit fd33b2b718
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
def execute():
import webnotes
webnotes.reload_doc("stock", "doctype", "delivery_note")
webnotes.conn.sql("""update `tabDelivery Note` set shipping_address_name = customer_address,
shipping_address = address_display""")

View File

@ -248,4 +248,5 @@ patch_list = [
"patches.july_2013.p01_remove_doctype_mappers",
"execute:webnotes.delete_doc('Report', 'Delivered Items To Be Billed')",
"execute:webnotes.delete_doc('Report', 'Received Items To Be Billed')",
"patches.july_2013.p02_copy_shipping_address",
]