commit | 0a0f2495a27585294e129deb60160259f0e72886 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Mon Mar 31 17:27:06 2014 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Mon Mar 31 17:27:06 2014 +0530 |
tree | 8c79b1bc413d824686fa1207c6e4e59a63377e79 | |
parent | 0e13cd5ac96f8be137ab4f9739bbd75a6a921b15 [diff] [blame] |
frappe/frappe#478, frappe tests pass, .txt renamed to .json
diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 2f28e1a..69d27ba 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py
@@ -49,8 +49,7 @@ bin_wrapper.insert() bin_obj = bin_wrapper.make_controller() else: - from frappe.model.code import get_obj - bin_obj = get_obj('Bin', bin) + bin_obj = frappe.get_doc('Bin', bin) return bin_obj def update_bin(args):