mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
rename function added in item
This commit is contained in:
@@ -178,3 +178,7 @@ Total Available Qty: %s
|
|||||||
|
|
||||||
sle = sql("select name from `tabStock Ledger Entry` where item_code = %s and ifnull(is_cancelled, 'No') = 'No'", self.doc.name)
|
sle = sql("select name from `tabStock Ledger Entry` where item_code = %s and ifnull(is_cancelled, 'No') = 'No'", self.doc.name)
|
||||||
return sle and 'exists' or 'not exists'
|
return sle and 'exists' or 'not exists'
|
||||||
|
|
||||||
|
def on_rename(self,newdn,olddn):
|
||||||
|
sql("update tabItem set item_code = %s where name = %s", (newdn, olddn))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user