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.

89 lines
4.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2016 SYLEAM
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="view_oauth_provider_client_tree" model="ir.ui.view">
  8. <field name="name">oauth.provider.client.tree</field>
  9. <field name="model">oauth.provider.client</field>
  10. <field name="arch" type="xml">
  11. <tree string="OAuth Provider Clients">
  12. <field name="name"/>
  13. <field name="identifier"/>
  14. <field name="application_type"/>
  15. <field name="scope_ids"/>
  16. </tree>
  17. </field>
  18. </record>
  19. <record id="view_oauth_provider_client_form" model="ir.ui.view">
  20. <field name="name">oauth.provider.client.form</field>
  21. <field name="model">oauth.provider.client</field>
  22. <field name="arch" type="xml">
  23. <form string="OAuth Provider Clients">
  24. <sheet>
  25. <h1>
  26. <field name="name"/>
  27. </h1>
  28. <group>
  29. <group>
  30. <field name="identifier"/>
  31. <field name="secret"/>
  32. <field name="application_type"/>
  33. </group>
  34. <group>
  35. <field name="skip_authorization" attrs="{'invisible': [('application_type', 'not in', ('mobile application', 'web application'))]}"/>
  36. <field name="scope_ids" widget="many2many_tags"/>
  37. <field name="token_type"/>
  38. </group>
  39. </group>
  40. <notebook colspan="4">
  41. <page string="Allowed Redirect URIs" attrs="{'invisible': [('application_type', 'not in', ('mobile application', 'web application'))]}">
  42. <field name="redirect_uri_ids">
  43. <tree string="Redirect URIs" editable="bottom">
  44. <field name="sequence" widget="handle"/>
  45. <field name="name"/>
  46. </tree>
  47. </field>
  48. </page>
  49. </notebook>
  50. </sheet>
  51. </form>
  52. </field>
  53. </record>
  54. <record id="view_oauth_provider_client_search" model="ir.ui.view">
  55. <field name="name">oauth.provider.client.search</field>
  56. <field name="model">oauth.provider.client</field>
  57. <field name="arch" type="xml">
  58. <search string="OAuth Provider Clients">
  59. <field name="name"/>
  60. <field name="identifier"/>
  61. <field name="application_type"/>
  62. <field name="scope_ids"/>
  63. </search>
  64. </field>
  65. </record>
  66. <record model="ir.actions.act_window" id="act_open_oauth_provider_client_view">
  67. <field name="name">OAuth Provider Clients</field>
  68. <field name="type">ir.actions.act_window</field>
  69. <field name="res_model">oauth.provider.client</field>
  70. <field name="view_type">form</field>
  71. <field name="view_mode">tree,form</field>
  72. <field name="search_view_id" ref="view_oauth_provider_client_search"/>
  73. <field name="domain">[]</field>
  74. <field name="context">{}</field>
  75. </record>
  76. <record model="ir.actions.act_window.view" id="act_open_oauth_provider_client_view_form">
  77. <field name="act_window_id" ref="act_open_oauth_provider_client_view"/>
  78. <field name="sequence" eval="20"/>
  79. <field name="view_mode">form</field>
  80. <field name="view_id" ref="view_oauth_provider_client_form"/>
  81. </record>
  82. <record model="ir.actions.act_window.view" id="act_open_oauth_provider_client_view_tree">
  83. <field name="act_window_id" ref="act_open_oauth_provider_client_view"/>
  84. <field name="sequence" eval="10"/>
  85. <field name="view_mode">tree</field>
  86. <field name="view_id" ref="view_oauth_provider_client_tree"/>
  87. </record>
  88. <menuitem id="menu_oauth_provider_client" parent="base.menu_users" sequence="40" action="act_open_oauth_provider_client_view"/>
  89. </odoo>