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.

54 lines
1.8 KiB

5 years ago
  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. <label for="secret" string="Client Secret" />
  27. <field name="secret" nolabel="1" />
  28. <field name="auth_redirect_uri" />
  29. <field name="allow_password_grant" />
  30. </group>
  31. </form>
  32. </field>
  33. </record>
  34. <record id="client_view_tree" model="ir.ui.view">
  35. <field name="model">galicea_openid_connect.client</field>
  36. <field name="arch" type="xml">
  37. <tree>
  38. <field name="name" />
  39. <field name="client_id" />
  40. <field name="auth_redirect_uri" />
  41. </tree>
  42. </field>
  43. </record>
  44. <act_window id="client_action"
  45. name="OpenID Clients"
  46. res_model="galicea_openid_connect.client" />
  47. <menuitem name="OpenID Connect Provider" id="client_menu"
  48. parent="base.menu_users" action="client_action" />
  49. </data>
  50. </odoo>