brotherton-erpnext/patches/january_2013/purchase_price_list.py

9 lines
235 B
Python
Raw Normal View History

2013-01-17 14:50:56 +00:00
import webnotes
def execute():
2013-01-18 07:37:02 +00:00
webnotes.reload_doc("stock", "doctype", "item_price")
2013-01-17 14:50:56 +00:00
# check for selling
webnotes.conn.sql("""update `tabItem Price` set buying_or_selling = "Selling"
where ifnull(buying_or_selling, '')=''""")
2013-01-17 14:50:56 +00:00