Parcourir la source

[fix] [minor] auto naming

version-14
Nabin Hait il y a 11 ans
Parent
révision
dd40a32b27
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      webnotes/model/doc.py

+ 1
- 1
webnotes/model/doc.py Voir le fichier

@@ -588,7 +588,7 @@ def make_autoname(key, doctype=''):
def getseries(key, digits, doctype=''):
# series created ?
current = webnotes.conn.get_value("Series", key, "current")
if current:
if current != None:
# yes, update it
webnotes.conn.sql("update tabSeries set current = current+1 where name=%s", key)
current = cint(current) + 1


Chargement…
Annuler
Enregistrer