[Cleanup] Sales Common deprecated

This commit is contained in:
Nabin Hait
2013-10-18 12:29:11 +05:30
parent d05a3b3b5c
commit d1fd1e2d89
42 changed files with 219 additions and 727 deletions

View File

@@ -3,10 +3,6 @@
def execute():
import webnotes
from webnotes.model.code import get_obj
#sc_obj = get_obj("Sales Common")
from selling.doctype.sales_common import sales_common
si = webnotes.conn.sql("""select distinct si.name
from `tabSales Invoice` si, `tabSales Invoice Item` si_item
@@ -16,5 +12,4 @@ def execute():
and ifnull(si_item.sales_order, '') != ''
""")
for d in si:
sales_common.StatusUpdater(get_obj("Sales Invoice", d[0], with_children=1), \
1).update_all_qty()
webnotes.bean("Sales Invoice", d[0]).run_method("update_qty")

View File

@@ -226,4 +226,6 @@ patch_list = [
"patches.october_2013.p05_server_custom_script_to_file",
"patches.october_2013.repost_ordered_qty",
"patches.october_2013.repost_planned_qty",
"patches.october_2013.p06_rename_packing_list_doctype",
"execute:webnotes.delete_doc('DocType', 'Sales Common')",
]