diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-08-03 10:43:28 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-08-04 11:55:50 +0200 |
| commit | 68c6f0deeb6b717f13fb0300f068249ba320aa3b (patch) | |
| tree | 76a879ec36bd282ea7b8672bba5934c3c45d7dc5 /addons/auth_oauth/data | |
| parent | 3769c7800ecf467669e13af87c1eac3207f9e398 (diff) | |
[account*, mrp*, sale*, stock*,...] Convert remaining .yml files to new API
Only purchase still has old api yml files, but they will be converted in
the module migration
Diffstat (limited to 'addons/auth_oauth/data')
| -rw-r--r-- | addons/auth_oauth/data/auth_oauth_data.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/auth_oauth/data/auth_oauth_data.yml b/addons/auth_oauth/data/auth_oauth_data.yml index af43811a560..5ec3a53009b 100644 --- a/addons/auth_oauth/data/auth_oauth_data.yml +++ b/addons/auth_oauth/data/auth_oauth_data.yml @@ -1,6 +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')}) + !python {model: ir.config_parameter, id: False}: | + oauth = self.env['auth.oauth.provider'] + oauth.browse(ref('provider_openerp')).write({'client_id': self.get_param('database.uuid')}) |
