error fixed in sales browser control

This commit is contained in:
Nabin Hait 2011-09-09 12:14:45 +05:30
parent 8f494265ba
commit f067969417

View File

@ -131,7 +131,7 @@ class DocType:
r = eval(args) r = eval(args)
if r['lft'] == 0: if r['lft'] == 0 and r['action'] != 'Create':
n = sql("select lft,rgt from `tab%s` where name = '%s'"%(r['node_title'],r['nm'])) n = sql("select lft,rgt from `tab%s` where name = '%s'"%(r['node_title'],r['nm']))
r['lft'] = n[0][0] r['lft'] = n[0][0]
r['rgt'] = n[0][1] r['rgt'] = n[0][1]
@ -212,4 +212,4 @@ class DocType:
if res: if res:
msgprint("'%s' record is already exist."%(r['nm'])) msgprint("'%s' record is already exist."%(r['nm']))
return 'true' return 'true'
return 'false' return 'false'