|
|
@ -5,11 +5,11 @@ |
|
|
|
<field name="model_id" ref="model_galicea_openid_connect_client"/> |
|
|
|
<field name="code"> |
|
|
|
action = { |
|
|
|
"type": "ir.actions.act_window", |
|
|
|
"view_mode": "form", |
|
|
|
"view_id": obj.env.ref('galicea_openid_connect.client_view_form_secret').id, |
|
|
|
"res_model": "galicea_openid_connect.client", |
|
|
|
"res_id": obj.id |
|
|
|
"type": "ir.actions.act_window", |
|
|
|
"view_mode": "form", |
|
|
|
"view_id": obj.env.ref('galicea_openid_connect.client_view_form_secret').id, |
|
|
|
"res_model": "galicea_openid_connect.client", |
|
|
|
"res_id": obj.id |
|
|
|
} |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -23,9 +23,8 @@ |
|
|
|
<field name="name" /> |
|
|
|
<field name="create_date" invisible="1" /> |
|
|
|
<field name="client_id" |
|
|
|
attrs="{'invisible':[('create_date', '==', False)]}" /> |
|
|
|
<label for="secret" class="oe_read_only" string="Client Secret" /> |
|
|
|
<button class="oe_read_only" string="Show" type="action" name="%(client_action_secret)d" /> |
|
|
|
attrs="{'invisible':[('create_date', '==', False)]}" /> |
|
|
|
<field name="secret" class="oe_read_only" string="Client Secret" /> |
|
|
|
<field name="auth_redirect_uri" /> |
|
|
|
<field name="allow_password_grant" /> |
|
|
|
</group> |
|
|
@ -33,18 +32,6 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="client_view_form_secret" model="ir.ui.view"> |
|
|
|
<field name="inherit_id" ref="galicea_openid_connect.client_view_form" /> |
|
|
|
<field name="priority">99</field> |
|
|
|
<field name="model">galicea_openid_connect.client</field> |
|
|
|
<field name="mode">primary</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<button name="%(client_action_secret)d" position="replace"> |
|
|
|
<field class="oe_read_only" name="secret" nolabel="1" /> |
|
|
|
</button> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="client_view_tree" model="ir.ui.view"> |
|
|
|
<field name="model">galicea_openid_connect.client</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
@ -57,10 +44,10 @@ |
|
|
|
</record> |
|
|
|
|
|
|
|
<act_window id="client_action" |
|
|
|
name="OpenID Clients" |
|
|
|
res_model="galicea_openid_connect.client" /> |
|
|
|
name="OpenID Clients" |
|
|
|
res_model="galicea_openid_connect.client" /> |
|
|
|
|
|
|
|
<menuitem name="OpenID Connect Provider" id="client_menu" |
|
|
|
parent="galicea_base.galicea_admin_menu" action="client_action" /> |
|
|
|
parent="galicea_base.galicea_admin_menu" action="client_action" /> |
|
|
|
</data> |
|
|
|
</odoo> |