[fix] [minor] update item_name and description in item price

This commit is contained in:
Akhilesh Darjee 2013-12-24 11:32:57 +05:30
parent 61da43f793
commit 25a4bd02f4
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
def execute():
webnotes.conn.sql("""update `tabItem Price` ip INNER JOIN `tabItem` i
ON (ip.item_code = i.name)
set ip.item_name = i.item_name, ip.item_description = i.description""")

View File

@ -262,4 +262,5 @@ patch_list = [
"patches.1311.p07_scheduler_errors_digest",
"patches.1311.p08_email_digest_recipients",
"execute:webnotes.delete_doc('DocType', 'Warehouse Type')",
"patches.1312.p02_update_item_details_in_item_price",
]