summaryrefslogtreecommitdiff
path: root/odoo/tools/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/tools/misc.py')
-rw-r--r--odoo/tools/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/misc.py b/odoo/tools/misc.py
index e0456a8429b..ebeb65c3523 100644
--- a/odoo/tools/misc.py
+++ b/odoo/tools/misc.py
@@ -471,7 +471,7 @@ class profile(object):
def wrapper(*args, **kwargs):
profile = cProfile.Profile()
result = profile.runcall(f, *args, **kwargs)
- profile.dump_stats(self.fname or ("%s.cprof" % (f.func_name,)))
+ profile.dump_stats(self.fname or ("%s.cprof" % (f.__name__,)))
return result
return wrapper