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.

77 lines
3.0 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2015 GRAP -Sylvain LE GAL
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <!-- Model: res.authentication.attempt -->
  6. <record id="view_res_authentication_attempt_tree" model="ir.ui.view">
  7. <field name="model">res.authentication.attempt</field>
  8. <field name="arch" type="xml">
  9. <tree
  10. decoration-warning="result == 'failed'"
  11. decoration-danger="result == 'banned'"
  12. >
  13. <field name="create_date"/>
  14. <field name="remote"/>
  15. <field name="login"/>
  16. <field name="result"/>
  17. </tree>
  18. </field>
  19. </record>
  20. <record id="view_res_authentication_attempt_form" model="ir.ui.view">
  21. <field name="model">res.authentication.attempt</field>
  22. <field name="arch" type="xml">
  23. <form>
  24. <header>
  25. <button
  26. name="action_whitelist_add"
  27. type="object"
  28. string="Add remote to whitelist"
  29. attrs="{'invisible': [('whitelisted', '=', True)]}"
  30. />
  31. <button
  32. name="action_whitelist_remove"
  33. type="object"
  34. string="Remove remote from whitelist"
  35. attrs="{'invisible': [('whitelisted', '=', False)]}"
  36. />
  37. </header>
  38. <sheet>
  39. <group>
  40. <field name="create_date"/>
  41. <field name="result"/>
  42. <field name="login"/>
  43. <field name="remote"/>
  44. <field name="remote_metadata"/>
  45. <field name="whitelisted" invisible="1"/>
  46. </group>
  47. </sheet>
  48. </form>
  49. </field>
  50. </record>
  51. <record id="view_res_authentication_attempt_graph" model="ir.ui.view">
  52. <field name="model">res.authentication.attempt</field>
  53. <field name="arch" type="xml">
  54. <graph>
  55. <field name="create_date"/>
  56. <field name="result"/>
  57. </graph>
  58. </field>
  59. </record>
  60. <record id="view_res_authentication_attempt_search" model="ir.ui.view">
  61. <field name="model">res.authentication.attempt</field>
  62. <field name="arch" type="xml">
  63. <search>
  64. <field name="login"/>
  65. <filter name="filter_no_success" string="Without Success" domain="[('result','!=', 'successful')]"/>
  66. <filter name="filter_banned" string="Banned" domain="[('result','=', 'banned')]"/>
  67. <filter name="filter_failed" string="Failed" domain="[('result','=', 'failed')]"/>
  68. <filter name="filter_successful" string="Successful" domain="[('result','=', 'successful')]"/>
  69. </search>
  70. </field>
  71. </record>
  72. </odoo>