Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Rushabh Mehta
2013-07-25 17:47:38 +05:30
10 changed files with 93 additions and 75 deletions

View File

@@ -101,9 +101,10 @@ class DocType:
""" Get raw material details like uom, desc and rate"""
if not args:
args = webnotes.form_dict.get('args')
import json
args = json.loads(args)
if isinstance(args, basestring):
import json
args = json.loads(args)
item = self.get_item_det(args['item_code'])
self.validate_rm_item(item)