fix in item addition - details fetching

This commit is contained in:
Anand Doshi 2012-03-26 14:17:30 +05:30
parent 4943af6d6c
commit c009450ef0
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: