[production] update planned and produced ty

This commit is contained in:
Nabin Hait
2013-10-11 18:31:33 +05:30
parent 93c836c86d
commit eea2b34f4b
10 changed files with 268 additions and 207 deletions

View File

@@ -393,13 +393,4 @@ def notify_errors(exceptions_list):
Administrator""" % ("\n\n".join(["\n".join(msg) for msg in exceptions_list]),)
from webnotes.profile import get_system_managers
sendmail(get_system_managers(), subject=subject, msg=msg)
def repost():
"""
Repost everything!
"""
from webnotes.model.code import get_obj
for wh in webnotes.conn.sql("select name from tabWarehouse"):
get_obj('Warehouse', wh[0]).repost_stock()
sendmail(get_system_managers(), subject=subject, msg=msg)