Merge pull request #1217 from pdvyas/patch-reload-packed_item

reload packed item in patch, for migration from slow branch
This commit is contained in:
Pratik Vyas 2013-12-19 05:46:52 -08:00
commit 4764f3ea1d

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()