summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/auth_oauth_data.yml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/auth_oauth/auth_oauth_data.yml')
-rw-r--r--addons/auth_oauth/auth_oauth_data.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/auth_oauth/auth_oauth_data.yml b/addons/auth_oauth/auth_oauth_data.yml
new file mode 100644
index 00000000000..af43811a560
--- /dev/null
+++ b/addons/auth_oauth/auth_oauth_data.yml
@@ -0,0 +1,6 @@
+-
+ Use database uuid as client_id for OpenERP oauth provider
+-
+ !python {model: ir.config_parameter}: |
+ oauth = self.pool.get('auth.oauth.provider')
+ oauth.write(cr, uid, [ref('provider_openerp')], {'client_id': self.get_param(cr, uid, 'database.uuid')})