mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
[fix] [minor] price list patch of june 2013 update fixed
This commit is contained in:
@@ -22,6 +22,6 @@ def execute():
|
|||||||
webnotes.conn.set_value("Price List", price_list, "buying_or_selling", buying_or_selling)
|
webnotes.conn.set_value("Price List", price_list, "buying_or_selling", buying_or_selling)
|
||||||
except MySQLdb.OperationalError, e:
|
except MySQLdb.OperationalError, e:
|
||||||
if e.args[0] == 1054:
|
if e.args[0] == 1054:
|
||||||
webnotes.conn.set_value("Price List", price_list, "buying_or_selling", "Selling")
|
webnotes.conn.sql("""update `tabItem Price` set buying_or_selling='Selling' """)
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
Reference in New Issue
Block a user