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.

53 lines
1.7 KiB

  1. <odoo>
  2. <data>
  3. <record model="ir.actions.server" id="client_action_secret">
  4. <field name="name">Show Client Secret</field>
  5. <field name="model_id" ref="model_galicea_openid_connect_client"/>
  6. <field name="code">
  7. action = {
  8. "type": "ir.actions.act_window",
  9. "view_mode": "form",
  10. "view_id": obj.env.ref('galicea_openid_connect.client_view_form_secret').id,
  11. "res_model": "galicea_openid_connect.client",
  12. "res_id": obj.id
  13. }
  14. </field>
  15. </record>
  16. <record id="client_view_form" model="ir.ui.view">
  17. <field name="model">galicea_openid_connect.client</field>
  18. <field name="priority">10</field>
  19. <field name="arch" type="xml">
  20. <form>
  21. <group>
  22. <field name="name" />
  23. <field name="create_date" invisible="1" />
  24. <field name="client_id"
  25. attrs="{'invisible':[('create_date', '==', False)]}" />
  26. <field name="secret" class="oe_read_only" string="Client Secret" />
  27. <field name="auth_redirect_uri" />
  28. <field name="allow_password_grant" />
  29. </group>
  30. </form>
  31. </field>
  32. </record>
  33. <record id="client_view_tree" model="ir.ui.view">
  34. <field name="model">galicea_openid_connect.client</field>
  35. <field name="arch" type="xml">
  36. <tree>
  37. <field name="name" />
  38. <field name="client_id" />
  39. <field name="auth_redirect_uri" />
  40. </tree>
  41. </field>
  42. </record>
  43. <act_window id="client_action"
  44. name="OpenID Clients"
  45. res_model="galicea_openid_connect.client" />
  46. <menuitem name="OpenID Connect Provider" id="client_menu"
  47. parent="galicea_base.galicea_admin_menu" action="client_action" />
  48. </data>
  49. </odoo>