[patch] copy customer_address to shipping_address in delivery note
This commit is contained in:
parent
e03e38db1e
commit
fd33b2b718
5
patches/july_2013/p02_copy_shipping_address.py
Normal file
5
patches/july_2013/p02_copy_shipping_address.py
Normal 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""")
|
@ -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",
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user