Parcourir la source

Convert method name to string instead of encoding

version-14
Aditya Hase il y a 8 ans
Parent
révision
39af5d1f1c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      frappe/model/document.py

+ 1
- 1
frappe/model/document.py Voir le fichier

@@ -662,7 +662,7 @@ class Document(BaseDocument):
# hack! to run hooks even if method does not exist
fn = lambda self, *args, **kwargs: None

fn.__name__ = method.encode("utf-8")
fn.__name__ = str(method)
out = Document.hook(fn)(self, *args, **kwargs)

self.run_email_alerts(method)


Chargement…
Annuler
Enregistrer