mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update misc for odoo18,更新配置相关
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
# 'website',
|
||||
],
|
||||
'data': [
|
||||
'data/auth_oauth_data.xml',
|
||||
'data/auth_oauth_provider_data.xml',
|
||||
'views/auth_oauth_provider_views.xml',
|
||||
'views/res_config_settings_views.xml',
|
||||
],
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<field name="data_endpoint"></field>
|
||||
<field name="css_class">fa fa-2x fa-fw fa-sign-in text-primary</field>
|
||||
<field name="enabled" eval="True"/>
|
||||
<field name="sequence">1</field>
|
||||
</record>
|
||||
<!-- Use database uuid as client_id for OpenERP oauth provider -->
|
||||
<function model="auth.oauth.provider" name="write">
|
||||
@@ -19,5 +20,10 @@
|
||||
'client_id': obj().env['ir.config_parameter'].get_param('database.uuid'),
|
||||
}"/>
|
||||
</function>
|
||||
<!-- 停用 odoo.com-->
|
||||
<function model="auth.oauth.provider" name="write">
|
||||
<value eval="[ref('auth_oauth.provider_openerp')]"/>
|
||||
<value eval="{'enabled': False}"/>
|
||||
</function>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user