Merge branch 'handlerupdate' of github.com:webnotes/erpnext into handlerupdate

This commit is contained in:
Rushabh Mehta 2012-03-26 10:50:40 +02:00
commit 20dc45f7bd
4 changed files with 8 additions and 4 deletions

View File

@ -166,7 +166,8 @@ class DocType(TransactionBase):
# Item Details
# -------------
def get_item_details(self, args=None):
args = args and eval(args) or {}
import json
args = args and json.loads(args) or {}
if args.get('item_code'):
ret = get_obj('Sales Common').get_item_details(args, self)
return self.get_pos_details(args, ret)

View File

@ -77,7 +77,8 @@ class DocType(TransactionBase):
# Get Item Details
# -----------------
def get_item_details(self, args=None):
args = args and eval(args) or {}
import json
args = args and json.loads(args) or {}
if args.get('item_code'):
return get_obj('Sales Common').get_item_details(args, self)
else:

View File

@ -102,7 +102,8 @@ class DocType(TransactionBase):
# Get Item Details
# ----------------
def get_item_details(self, args=None):
args = args and eval(args) or {}
import json
args = args and json.loads(args) or {}
if args.get('item_code'):
return get_obj('Sales Common').get_item_details(args, self)
else:

View File

@ -107,7 +107,8 @@ class DocType(TransactionBase):
# ***************** Get Item Details ******************************
def get_item_details(self, args=None):
args = args and eval(args) or {}
import json
args = args and json.loads(args) or {}
if args.get('item_code'):
return get_obj('Sales Common').get_item_details(args, self)
else: