reload packed item in patch, for migration from slow branch
This commit is contained in:
parent
a38a7b8e76
commit
104deeebb5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user