[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""")