[fix] [minor] set customer/supplier defaults

This commit is contained in:
Anand Doshi
2013-07-25 17:46:02 +05:30
parent c9c00c904f
commit f2045fb92e
4 changed files with 26 additions and 14 deletions

View File

@@ -97,9 +97,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)