diff --git a/addons/auth_oauth_signup/__openerp__.py b/addons/auth_oauth_signup/__openerp__.py index 8fc93f6c920..d3660f7c052 100644 --- a/addons/auth_oauth_signup/__openerp__.py +++ b/addons/auth_oauth_signup/__openerp__.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2010-2012 OpenERP SA (). +# Copyright (C) 2010-2014 OpenERP SA (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -30,7 +30,9 @@ Allow users to sign up through OAuth2 Provider. 'author': 'OpenERP SA', 'website': 'http://www.openerp.com', 'depends': ['auth_oauth', 'auth_signup'], - 'data': [], + 'data': [ + 'views/auth_oauth_signup.xml', + ], 'js': [], 'css': [], 'qweb': [], diff --git a/addons/auth_oauth_signup/views/auth_oauth_signup.xml b/addons/auth_oauth_signup/views/auth_oauth_signup.xml new file mode 100644 index 00000000000..139f36a4c0f --- /dev/null +++ b/addons/auth_oauth_signup/views/auth_oauth_signup.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index 06c916d9580..3f53b28b075 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -36,7 +36,10 @@ class AuthSignup(openerp.addons.web.controllers.main.Home): def web_login(self, *args, **kw): mode = request.params.get('mode') qcontext = request.params.copy() + super_response = super(AuthSignup, self).web_login(*args, **kw) response = webmain.render_bootstrap_template(request.session.db, 'auth_signup.signup', qcontext, lazy=True) + if isinstance(super_response, LazyResponse): + response.params['values'].update(super_response.params['values']) token = qcontext.get('token', None) token_infos = None if token: @@ -60,10 +63,9 @@ class AuthSignup(openerp.addons.web.controllers.main.Home): qcontext.update(config) if 'error' in qcontext or mode not in ('reset', 'signup') or (not token and not config[mode]): - response = super(AuthSignup, self).web_login(*args, **kw) - if isinstance(response, LazyResponse): - response.params['values'].update(config) - return response + if isinstance(super_response, LazyResponse): + super_response.params['values'].update(config) + return super_response if request.httprequest.method == 'GET': if token_infos: diff --git a/addons/email_template/wizard/mail_compose_message_view.xml b/addons/email_template/wizard/mail_compose_message_view.xml index b7c57af2679..44145114fff 100644 --- a/addons/email_template/wizard/mail_compose_message_view.xml +++ b/addons/email_template/wizard/mail_compose_message_view.xml @@ -28,7 +28,8 @@
Use template + on_change="onchange_template_id(template_id, composition_mode, model, res_id, context)" domain="[('model_id.model','=',model)]" + context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/>