mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
error fixed in sales browser control
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user