You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<odoo> <data> <record model="ir.actions.server" id="client_action_secret"> <field name="name">Show Client Secret</field> <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 } </field> </record>
<record id="client_view_form" model="ir.ui.view"> <field name="model">galicea_openid_connect.client</field> <field name="priority">10</field> <field name="arch" type="xml"> <form> <group> <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" /> <field name="auth_redirect_uri" /> <field name="allow_password_grant" /> </group> </form> </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"> <tree> <field name="name" /> <field name="client_id" /> <field name="auth_redirect_uri" /> </tree> </field> </record>
<act_window id="client_action" 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" /> </data> </odoo>
|