reload packed item in patch, for migration from slow branch

This commit is contained in:
Pratik Vyas 2013-12-19 19:16:00 +05:30
parent a38a7b8e76
commit 104deeebb5

View File

@ -5,7 +5,8 @@ from __future__ import unicode_literals
def execute():
import webnotes
webnotes.reload_doc('stock', 'doctype', 'packed_item')
for si in webnotes.conn.sql("""select name from `tabSales Invoice` where docstatus = 1"""):
webnotes.get_obj("Sales Invoice", si[0],
with_children=1).update_qty(change_modified=False)
webnotes.conn.commit()
webnotes.conn.commit()