res_users_views.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="change_password_own_form" model="ir.ui.view">
  5. <field name="name">Change Own Password</field>
  6. <field name="model">change.password.own</field>
  7. <field name="arch" type="xml">
  8. <form string="Change Password">
  9. <group>
  10. <field name="new_password" password="True" required="1"/>
  11. <field name="confirm_password" password="True" required="1"/>
  12. </group>
  13. <footer>
  14. <button string="Change Password" name="change_password" type="object" class="btn-primary" data-hotkey="q"/>
  15. <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
  16. </footer>
  17. </form>
  18. </field>
  19. </record>
  20. <!-- change password wizard -->
  21. <record id="change_password_wizard_view" model="ir.ui.view">
  22. <field name="name">Change Password</field>
  23. <field name="model">change.password.wizard</field>
  24. <field name="arch" type="xml">
  25. <form string="Change Password">
  26. <field mode="tree" name="user_ids"/>
  27. <footer>
  28. <button string="Change Password" name="change_password_button" type="object" class="btn-primary" data-hotkey="q"/>
  29. <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
  30. </footer>
  31. </form>
  32. </field>
  33. </record>
  34. <record id="change_password_wizard_user_tree_view" model="ir.ui.view">
  35. <field name="name">Change Password Users</field>
  36. <field name="model">change.password.user</field>
  37. <field name="arch" type="xml">
  38. <!-- the user list is editable, but one cannot add or delete rows -->
  39. <tree string="Users" editable="bottom" create="false" delete="false">
  40. <field name="user_id" invisible="1"/>
  41. <field name="user_login" force_save="1"/>
  42. <field name="new_passwd" required="True" password="True"/>
  43. </tree>
  44. </field>
  45. </record>
  46. <record id="change_password_wizard_action" model="ir.actions.act_window">
  47. <field name="name">Change Password</field>
  48. <field name="res_model">change.password.wizard</field>
  49. <field name="view_mode">form</field>
  50. <field name="target">new</field>
  51. <field name="binding_model_id" ref="base.model_res_users"/>
  52. </record>
  53. <record id="identity_check_wizard" model="ir.ui.view">
  54. <field name="model">res.users.identitycheck</field>
  55. <field name="arch" type="xml">
  56. <form string="Password Confirmation">
  57. <sheet class="bg-primary">
  58. <h3><strong>Please enter your password to confirm you own this account</strong></h3>
  59. <br/>
  60. <div>
  61. <field class="o_field_highlight col-10 col-md-6 px-0" name="password" autocomplete="current-password"
  62. required="True" password="True" placeholder="************"/>
  63. </div>
  64. <a href="/web/reset_password/" class="btn btn-link" role="button">Forgot password?</a>
  65. </sheet>
  66. <footer>
  67. <button string="Confirm Password" type="object" name="run_check" class="btn btn-primary" data-hotkey="q"/>
  68. <button string="Cancel" special="cancel" data-hotkey="z" class="btn btn-secondary"/>
  69. </footer>
  70. </form>
  71. </field>
  72. </record>
  73. <!-- res.groups -->
  74. <record id="view_groups_search" model="ir.ui.view">
  75. <field name="name">res.groups.search</field>
  76. <field name="model">res.groups</field>
  77. <field name="arch" type="xml">
  78. <search string="Groups">
  79. <field name="name" filter_domain="['|', ('full_name','ilike',self), ('category_id','ilike',self)]" string="Group"/>
  80. <separator orientation="vertical"/>
  81. <field name="share"/>
  82. <filter name="filter_no_share" string="Internal Groups" domain="[('share','=',False)]"/>
  83. </search>
  84. </field>
  85. </record>
  86. <record id="view_groups_form" model="ir.ui.view">
  87. <field name="name">res.groups.form</field>
  88. <field name="model">res.groups</field>
  89. <field name="arch" type="xml">
  90. <form string="Groups">
  91. <sheet>
  92. <group col="4">
  93. <field name="category_id"/>
  94. <field name="name"/>
  95. <field name="share"/>
  96. </group>
  97. <notebook>
  98. <page string="Users" name="users">
  99. <field name="users" context="{'search_default_filter_no_share':1}"/>
  100. </page>
  101. <page string="Inherited" name="inherit_groups">
  102. <label for="implied_ids" string="Users added to this group are automatically added in the following groups."/>
  103. <field name="implied_ids"/>
  104. </page>
  105. <page string="Menus" name="menus">
  106. <field name="menu_access"/>
  107. </page>
  108. <page string="Views" name="views">
  109. <field name="view_access" groups="base.group_system"/>
  110. </page>
  111. <page string="Access Rights" name="access_rights">
  112. <field name="model_access">
  113. <tree string="Access Rights" editable="top">
  114. <field name="name"/>
  115. <field name="model_id"/>
  116. <field name="perm_read"/>
  117. <field name="perm_write"/>
  118. <field name="perm_create"/>
  119. <field name="perm_unlink"/>
  120. </tree>
  121. </field>
  122. </page>
  123. <page string="Record Rules" name="record_rules">
  124. <field name="rule_groups">
  125. <tree string="Record Rules" editable="top">
  126. <field name="name"/>
  127. <field name="model_id"/>
  128. <field name="domain_force"/>
  129. <field name="perm_read"/>
  130. <field name="perm_write"/>
  131. <field name="perm_create"/>
  132. <field name="perm_unlink"/>
  133. </tree>
  134. </field>
  135. </page><page string="Notes" name="notes">
  136. <field name="comment"/>
  137. </page>
  138. </notebook>
  139. </sheet>
  140. </form>
  141. </field>
  142. </record>
  143. <record id="action_res_groups" model="ir.actions.act_window">
  144. <field name="name">Groups</field>
  145. <field name="type">ir.actions.act_window</field>
  146. <field name="res_model">res.groups</field>
  147. <field name="context">{'search_default_filter_no_share': 1}</field>
  148. <field name="help">A group is a set of functional areas that will be assigned to the user in order to give them access and rights to specific applications and tasks in the system. You can create custom groups or edit the ones existing by default in order to customize the view of the menu that users will be able to see. Whether they can have a read, write, create and delete access right can be managed from here.</field>
  149. </record>
  150. <menuitem action="action_res_groups" id="menu_action_res_groups" parent="base.menu_users" groups="base.group_no_one" sequence="3"/>
  151. <!-- res.users -->
  152. <record id="view_users_simple_form" model="ir.ui.view">
  153. <field name="name">res.users.simplified.form</field>
  154. <field name="model">res.users</field>
  155. <field name="priority">1</field>
  156. <field name="arch" type="xml">
  157. <form string="Users">
  158. <sheet>
  159. <field name="id" invisible="1"/>
  160. <div class="alert alert-info text-center mb-3" attrs="{'invisible': [('id', '>', 0)]}" role="alert">
  161. You are inviting a new user.
  162. </div>
  163. <field name="avatar_128" invisible="1"/>
  164. <field name="image_1920" widget='image' class="oe_avatar" options='{"zoom": true, "preview_image": "avatar_128"}'/>
  165. <div class="oe_title">
  166. <label for="name"/>
  167. <h1><field name="name" placeholder="e.g. John Doe" required="1"/></h1>
  168. <field name="email" invisible="1"/>
  169. <label for="login" string="Email Address"/>
  170. <h2>
  171. <field name="login"
  172. placeholder="e.g. email@yourcompany.com"/>
  173. </h2>
  174. <label for="company_id" groups="base.group_multi_company"/>
  175. <field name="company_id" context="{'user_preference': 0}" groups="base.group_multi_company"/>
  176. </div>
  177. <group name="phone_numbers">
  178. <label for="groups_id" string="Access Rights"
  179. attrs="{'invisible': [('id', '>', 0)]}" groups="base.group_no_one"/>
  180. <div attrs="{'invisible': [('id', '>', 0)]}" groups="base.group_no_one">
  181. <field name="groups_id" readonly="1" widget="many2many_tags" options="{'color_field': 'color'}" style="display: inline;"/> You will be able to define additional access rights by editing the newly created user under the Settings / Users menu.
  182. </div>
  183. <field name="phone" widget="phone"/>
  184. <field name="mobile" widget="phone"/>
  185. </group>
  186. </sheet>
  187. </form>
  188. </field>
  189. </record>
  190. <record id="view_users_form" model="ir.ui.view">
  191. <field name="name">res.users.form</field>
  192. <field name="model">res.users</field>
  193. <field name="arch" type="xml">
  194. <form string="Users">
  195. <header>
  196. </header>
  197. <sheet>
  198. <field name="id" invisible="1"/>
  199. <div class="oe_button_box" name="button_box">
  200. <button name="action_show_groups" type="object" groups="base.group_no_one" class="oe_stat_button" icon="fa-users">
  201. <field string="Groups" name="groups_count" widget="statinfo"/>
  202. </button>
  203. <button name="action_show_accesses" type="object" groups="base.group_no_one" class="oe_stat_button" icon="fa-list">
  204. <field string="Access Rights" name="accesses_count" widget="statinfo"/>
  205. </button>
  206. <button name="action_show_rules" type="object" groups="base.group_no_one" class="oe_stat_button" icon="fa-list-ul">
  207. <field string="Record Rules" name="rules_count" widget="statinfo"/>
  208. </button>
  209. </div>
  210. <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
  211. <field name="active_partner" required="0" readonly="1" invisible="1"/>
  212. <div class="alert alert-info text-center o_form_header"
  213. attrs="{'invisible': [
  214. '|', '|',
  215. '&amp;', ('active', '=', True), ('active_partner', '=', True),
  216. '&amp;', ('active', '=', False), ('active_partner', '=', False),
  217. '&amp;', ('active', '=', True), ('active_partner', '=', False),
  218. ]}"
  219. role="alert">
  220. <a class="close" data-bs-dismiss="alert" href="#">x</a>
  221. <div>
  222. <strong>The contact linked to this user is still active</strong>
  223. </div>
  224. <div>You can archive the contact
  225. <field name="partner_id" required="0" readonly="1"/>
  226. </div>
  227. </div>
  228. <field name="avatar_128" invisible="1"/>
  229. <field name="image_1920" widget='image' class="oe_avatar" options='{"preview_image": "avatar_128"}'/>
  230. <div class="oe_title">
  231. <label for="name"/>
  232. <h1><field name="name" placeholder="e.g. John Doe" required="1"/></h1>
  233. <field name="email" invisible="1"/>
  234. <label for="login" string="Email Address"/>
  235. <h2><field name="login" placeholder="e.g. email@yourcompany.com"/></h2>
  236. <group>
  237. <field name="partner_id" readonly="1" required="0" groups="base.group_no_one"
  238. attrs="{'invisible': [('id', '=', False)]}"/>
  239. <field name="share" invisible="1"/>
  240. </group>
  241. </div>
  242. <notebook colspan="4">
  243. <page name="access_rights" string="Access Rights">
  244. <group string="Multi Companies" attrs="{'invisible': [('companies_count', '&lt;=', 1)]}">
  245. <field string="Allowed Companies" name="company_ids" widget="many2many_tags" options="{'no_create': True}"/>
  246. <field string="Default Company" name="company_id" context="{'user_preference': 0}"/>
  247. <field string="Companies count" name="companies_count" invisible="1"/>
  248. </group>
  249. <field name="groups_id"/>
  250. </page>
  251. <page string="Preferences" name="preferences">
  252. <group>
  253. <group string="Localization" name="preferences">
  254. <field name="active" invisible="1"/>
  255. <label for="lang" />
  256. <div class="o_row">
  257. <field name="lang" required="1"/>
  258. <button
  259. type="action"
  260. name="%(base.action_view_base_language_install)d"
  261. class="oe_edit_only btn-sm btn-link mb4 fa fa-globe"
  262. aria-label="Add a language"
  263. title="Add a language"/>
  264. </div>
  265. <field name="tz" widget="timezone_mismatch" options="{'tz_offset_field': 'tz_offset'}" />
  266. <field name="tz_offset" invisible="1"/>
  267. </group>
  268. <group string="Menus Customization" groups="base.group_no_one"
  269. attrs="{'invisible': [('share', '=', True)]}">
  270. <field name="action_id"/>
  271. </group>
  272. </group>
  273. <group name="messaging">
  274. <field name="signature" options="{'style-inline': true, 'codeview': true}"/>
  275. </group>
  276. </page>
  277. </notebook>
  278. </sheet>
  279. </form>
  280. </field>
  281. </record>
  282. <record id="view_users_tree" model="ir.ui.view">
  283. <field name="name">res.users.tree</field>
  284. <field name="model">res.users</field>
  285. <field name="arch" type="xml">
  286. <tree string="Users">
  287. <field name="name"/>
  288. <field name="login"/>
  289. <field name="lang"/>
  290. <field name="login_date"/>
  291. <field name="company_id" groups="base.group_multi_company"/>
  292. </tree>
  293. </field>
  294. </record>
  295. <record id="view_res_users_kanban" model="ir.ui.view">
  296. <field name="name">res.users.kanban</field>
  297. <field name="model">res.users</field>
  298. <field name="arch" type="xml">
  299. <kanban class="o_kanban_mobile">
  300. <field name="id"/>
  301. <field name="name"/>
  302. <field name="login"/>
  303. <field name="lang"/>
  304. <field name="active"/>
  305. <field name="login_date"/>
  306. <templates>
  307. <t t-name="kanban-box">
  308. <div t-attf-class="oe_kanban_global_click">
  309. <div class="o_kanban_image">
  310. <img alt="Avatar" t-att-src="kanban_image('res.users', 'avatar_128', record.id.raw_value)"/>
  311. </div>
  312. <div class="oe_kanban_details">
  313. <ul>
  314. <li class="text-success float-end mb4" t-if="record.active.raw_value"><i class="fa fa-circle" role="img" aria-label="Ok" title="Ok"></i></li>
  315. <li class="text-danger float-end mb4" t-if="!record.active.raw_value"><i class="fa fa-circle" role="img" aria-label="Invalid" title="Invalid"></i></li>
  316. <li class="mb4">
  317. <strong><field name="name"/></strong>
  318. </li>
  319. <li class="badge rounded-pill float-end mb4" t-if="record.lang.raw_value"><field name="lang"/></li>
  320. <li class="mb4" t-if="record.login.raw_value" title="Login"><i class="fa fa-envelope" role="img" aria-label="Login"/> <field name="login"/></li>
  321. </ul>
  322. </div>
  323. </div>
  324. </t>
  325. </templates>
  326. </kanban>
  327. </field>
  328. </record>
  329. <record id="view_users_search" model="ir.ui.view">
  330. <field name="name">res.users.search</field>
  331. <field name="model">res.users</field>
  332. <field name="arch" type="xml">
  333. <search string="Users">
  334. <field name="name" filter_domain="['|', '|', ('name','ilike',self), ('login','ilike',self), ('email','ilike',self)]" string="User"/>
  335. <field name="company_ids" string="Company" groups="base.group_multi_company"/>
  336. <field name="share"/>
  337. <filter name="filter_no_share" string="Internal Users" domain="[('share', '=', False)]"/>
  338. <filter name="filter_share" string="Portal Users" domain="[('share', '=', True)]"/>
  339. <separator/>
  340. <filter name="Inactive" string="Inactive Users" domain="[('active','=',False)]"/>
  341. </search>
  342. </field>
  343. </record>
  344. <record id="user_groups_view" model="ir.ui.view">
  345. <field name="name">res.users.groups</field>
  346. <field name="model">res.users</field>
  347. <field name="inherit_id" ref="view_users_form"/>
  348. <field name="arch" type="xml">
  349. <!-- dummy, will be modified by groups -->
  350. <field name="groups_id" position="after"/>
  351. </field>
  352. </record>
  353. <!-- dummy update on group, to force the view above to be update -->
  354. <record model="res.groups" id="group_no_one"/>
  355. <record id="action_res_users" model="ir.actions.act_window">
  356. <field name="name">Users</field>
  357. <field name="type">ir.actions.act_window</field>
  358. <field name="res_model">res.users</field>
  359. <field name="view_mode">tree,kanban,form</field>
  360. <field name="view_id" ref="view_users_tree"/>
  361. <field name="search_view_id" ref="view_users_search"/>
  362. <field name="context">{'search_default_filter_no_share': 1, 'show_user_group_warning': True}</field>
  363. <field name="help">Create and manage users that will connect to the system. Users can be deactivated should there be a period of time during which they will/should not connect to the system. You can assign them groups in order to give them specific access to the applications they need to use in the system.</field>
  364. </record>
  365. <record id="action_res_users_view1" model="ir.actions.act_window.view">
  366. <field eval="10" name="sequence"/>
  367. <field name="view_mode">tree</field>
  368. <field name="view_id" ref="view_users_tree"/>
  369. <field name="act_window_id" ref="action_res_users"/>
  370. </record>
  371. <record id="action_res_users_view2" model="ir.actions.act_window.view">
  372. <field eval="20" name="sequence"/>
  373. <field name="view_mode">form</field>
  374. <field name="view_id" ref="view_users_form"/>
  375. <field name="act_window_id" ref="action_res_users"/>
  376. </record>
  377. <menuitem action="action_res_users" id="menu_action_res_users" parent="base.menu_users" sequence="0"/>
  378. <record id="action_res_users_keys_description" model="ir.actions.act_window">
  379. <field name="name">API Key: description input wizard</field>
  380. <field name="res_model">res.users.apikeys.description</field>
  381. <field name="target">new</field>
  382. <field name="view_mode">form</field>
  383. </record>
  384. <record id="form_res_users_key_description" model="ir.ui.view">
  385. <field name="name">API Key: description input form</field>
  386. <field name="model">res.users.apikeys.description</field>
  387. <field name="arch" type="xml">
  388. <form>
  389. <sheet>
  390. <h3 class="fw-bold">
  391. Name your key
  392. </h3>
  393. <p>Enter a description of and purpose for the key.</p>
  394. <field name="name" placeholder="What's this key for?"/>
  395. <p>
  396. It is very important that this description be clear
  397. and complete, <strong>it will be the only way to
  398. identify the key once created</strong>.
  399. </p>
  400. <footer>
  401. <button name="make_key" type="object" string="Generate key" class="btn-primary" data-hotkey="q"/>
  402. <button special="cancel" data-hotkey="z" string="Cancel" class="btn-secondary"/>
  403. </footer>
  404. </sheet>
  405. </form>
  406. </field>
  407. </record>
  408. <record id="form_res_users_key_show" model="ir.ui.view">
  409. <field name="name">API Key: show</field>
  410. <field name="model">res.users.apikeys.show</field>
  411. <field name="arch" type="xml">
  412. <form>
  413. <sheet>
  414. <h3 class="fw-bold">
  415. Write down your key
  416. </h3>
  417. <p>
  418. Here is your new API key, use it instead of a password for RPC access.
  419. Your login is still necessary for interactive usage.
  420. </p>
  421. <p><code><field name="key" readonly="True"/></code></p>
  422. <p class="alert alert-warning" role="alert">
  423. <strong>Important:</strong>
  424. The key cannot be retrieved later and provides <b>full access</b>
  425. to your user account, it is very important to store it securely.
  426. </p>
  427. <footer>
  428. <button special="cancel" data-hotkey="z" string="Done!"/>
  429. </footer>
  430. </sheet>
  431. </form>
  432. </field>
  433. </record>
  434. <record id="view_users_form_simple_modif" model="ir.ui.view">
  435. <field name="name">res.users.preferences.form</field>
  436. <field name="model">res.users</field>
  437. <field eval="18" name="priority"/>
  438. <field name="arch" type="xml">
  439. <form string="Users" edit="1">
  440. <field name="avatar_128" invisible="1"/>
  441. <field name="image_1920" readonly="0" widget='image' class="oe_right oe_avatar" options='{"preview_image": "avatar_128"}'/>
  442. <h1>
  443. <field name="name" readonly="1" class="oe_inline"/>
  444. </h1>
  445. <notebook>
  446. <page string="Preferences" name="preferences_page">
  447. <group name="preferences">
  448. <group>
  449. <field name="email" widget="email" readonly="0"/>
  450. </group>
  451. <group>
  452. <label for="lang"/>
  453. <div class="o_row">
  454. <field name="lang" required="1" readonly="0"/>
  455. <button
  456. type="action"
  457. name="%(base.action_view_base_language_install)d"
  458. class="oe_edit_only btn-sm btn-link mb4 fa fa-globe"
  459. aria-label="Add a language"
  460. groups="base.group_system"
  461. title="Add a language"
  462. />
  463. </div>
  464. <field name="tz" widget="timezone_mismatch" options="{'tz_offset_field': 'tz_offset'}" readonly="0"/>
  465. <field name="tz_offset" invisible="1"/>
  466. </group>
  467. <field name="share" invisible="1"/>
  468. </group>
  469. <group name="signature">
  470. <field name="signature" readonly="0" options="{'style-inline': true, 'codeview': true}"/>
  471. </group>
  472. <group name="status" string="Status" invisible="1">
  473. <field name="company_id" options="{'no_create': True}" readonly="0"
  474. groups="base.group_multi_company"/>
  475. </group>
  476. <group name="preference_contact"></group>
  477. </page>
  478. <page string="Account Security">
  479. <group name="auth" string="Password Management">
  480. <div colspan="2">
  481. <button name="preference_change_password" type="object" string="Change password" class="btn btn-secondary"/>
  482. </div>
  483. </group>
  484. <group string="API Keys">
  485. <div class="text-muted" colspan="2">
  486. API Keys are used to connect to Odoo from external tools without the need for a password or Two-factor Authentication.
  487. <a href="https://www.odoo.com/documentation/16.0/developer/misc/api/external_api.html#api-keys" target="_blank">
  488. <i title="Documentation" class="fa fa-fw o_button_icon fa-info-circle"></i>
  489. Learn more
  490. </a>
  491. </div>
  492. <div colspan="2" attrs="{'invisible': [('api_key_ids', '=', [])]}">
  493. <field name="api_key_ids" nolabel="1" colspan="4" readonly="0">
  494. <tree editable="bottom" create="false" delete="false">
  495. <field name="name"/>
  496. <field name="scope"/>
  497. <field name="create_date"/>
  498. <button type="object" name="remove"
  499. string="Delete API key." icon="fa-trash"/>
  500. </tree>
  501. </field>
  502. </div>
  503. <div colspan="2">
  504. <button name="api_key_wizard" string="New API Key" type="object" class="btn btn-secondary"/>
  505. </div>
  506. </group>
  507. </page>
  508. </notebook>
  509. <footer>
  510. <button name="preference_save" type="object" string="Save" class="btn-primary" data-hotkey="q"/>
  511. <button name="preference_cancel" string="Cancel" special="cancel" data-hotkey="z" class="btn-secondary"/>
  512. </footer>
  513. </form>
  514. </field>
  515. </record>
  516. <record id="action_res_users_my" model="ir.actions.act_window">
  517. <field name="name">Change My Preferences</field>
  518. <field name="type">ir.actions.act_window</field>
  519. <field name="res_model">res.users</field>
  520. <field name="target">new</field>
  521. <field name="view_mode">form</field>
  522. </record>
  523. <record id="action_res_users_my_view2" model="ir.actions.act_window.view">
  524. <field eval="10" name="sequence"/>
  525. <field name="view_mode">form</field>
  526. <field name="view_id" ref="view_users_form_simple_modif"/>
  527. <field name="act_window_id" ref="action_res_users_my"/>
  528. </record>
  529. <record model="ir.ui.view" id="view_apikeys">
  530. <field name="name">API Keys Listing</field>
  531. <field name="model">res.users.apikeys</field>
  532. <field name="groups_id" eval="[Command.link(ref('base.group_system'))]"/>
  533. <field name="arch" type="xml">
  534. <tree create="false" edit="false" delete="false" editable="bottom">
  535. <field name="user_id"/>
  536. <field name="name"/>
  537. <field name="scope"/>
  538. <field name="create_date"/>
  539. <button type="object" name="remove" title="Delete API key." icon="fa-trash"/>
  540. </tree>
  541. </field>
  542. </record>
  543. <record model="ir.actions.act_window" id="action_apikeys_admin">
  544. <field name="name">API Keys Listing</field>
  545. <field name="res_model">res.users.apikeys</field>
  546. <field name="view_mode">tree</field>
  547. <field name="groups_id" eval="[Command.link(ref('base.group_system'))]"/>
  548. <field name="view_id" ref="base.view_apikeys"/>
  549. </record>
  550. </data>
  551. </odoo>