Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Created January 24, 2013 14:20
Show Gist options
  • Save mrvdb/4622172 to your computer and use it in GitHub Desktop.
Save mrvdb/4622172 to your computer and use it in GitHub Desktop.
=== modified file 'auth_signup/res_users.py'
--- auth_signup/res_users.py 2013-01-22 14:59:25 +0000
+++ auth_signup/res_users.py 2013-01-24 14:09:39 +0000
@@ -248,7 +248,7 @@
# send email to users with their signup url
template = False
- if context.get('create_user'):
+ if context and context.get('create_user'):
try:
template = self.pool.get('ir.model.data').get_object(cr, uid, 'auth_signup', 'set_password_email')
except ValueError:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment