diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-01-02 14:38:59 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-01-02 14:38:59 +0100 |
| commit | 81f59cee2cea76fe40cef9913382c0259bf38512 (patch) | |
| tree | 3ae3b00e8af6c919d6b02d314abbf5909c932fe8 /addons/auth_oauth/models/ir_config_parameter.py | |
| parent | d3538dbe475ebd933be86035b8bbc61a856b032f (diff) | |
| parent | b844d938890938629357c6df54ee687a3b52ffbe (diff) | |
[MERGE] forward port branch saas-11 up to b844d938890
Diffstat (limited to 'addons/auth_oauth/models/ir_config_parameter.py')
| -rw-r--r-- | addons/auth_oauth/models/ir_config_parameter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/auth_oauth/models/ir_config_parameter.py b/addons/auth_oauth/models/ir_config_parameter.py index 0bb07465286..6a302e2b398 100644 --- a/addons/auth_oauth/models/ir_config_parameter.py +++ b/addons/auth_oauth/models/ir_config_parameter.py @@ -11,5 +11,7 @@ class IrConfigParameter(models.Model): super(IrConfigParameter, self).init(force=force) if force: oauth_oe = self.env.ref('auth_oauth.provider_openerp') + if not oauth_oe: + return dbuuid = self.sudo().get_param('database.uuid') oauth_oe.write({'client_id': dbuuid}) |
