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.

100 lines
4.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ********************************************************************** -->
  3. <!--Tracks Authentication Attempts and Prevents Brute-force Attacks module -->
  4. <!--Copyright (C) 2015-Today GRAP (http://www.grap.coop) -->
  5. <!--@author Sylvain LE GAL (https://twitter.com/legalsylvain) -->
  6. <!--This program is free software: you can redistribute it and/or modify -->
  7. <!--it under the terms of the GNU Affero General Public License as -->
  8. <!--published by the Free Software Foundation, either version 3 of the -->
  9. <!--License, or (at your option) any later version. -->
  10. <!--This program is distributed in the hope that it will be useful, -->
  11. <!--but WITHOUT ANY WARRANTY; without even the implied warranty of -->
  12. <!--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
  13. <!--GNU Affero General Public License for more details. -->
  14. <!--You should have received a copy of the GNU Affero General Public License-->
  15. <!--along with this program. If not, see <http://www.gnu.org/licenses/>. -->
  16. <!-- ********************************************************************** -->
  17. <openerp>
  18. <data>
  19. <!-- Model: res.authentication.attempt -->
  20. <record id="view_res_authentication_attempt_tree" model="ir.ui.view">
  21. <field name="model">res.authentication.attempt</field>
  22. <field name="arch" type="xml">
  23. <tree colors="orange: result == 'failed';red: result == 'banned'">
  24. <field name="attempt_date" />
  25. <field name="remote" />
  26. <field name="login" />
  27. <field name="result" />
  28. <field name="environ" />
  29. </tree>
  30. </field>
  31. </record>
  32. <record id="view_res_authentication_attempt_graph" model="ir.ui.view">
  33. <field name="model">res.authentication.attempt</field>
  34. <field name="arch" type="xml">
  35. <graph>
  36. <field name="attempt_date" />
  37. <field name="result" />
  38. </graph>
  39. </field>
  40. </record>
  41. <record id="view_res_authentication_attempt_search" model="ir.ui.view">
  42. <field name="model">res.authentication.attempt</field>
  43. <field name="arch" type="xml">
  44. <search>
  45. <field name="login"/>
  46. <field name="environ"/>
  47. <filter name="filter_no_success" string="Without Success" domain="[('result','!=', 'successfull')]"/>
  48. <filter name="filter_banned" string="Banned" domain="[('result','=', 'banned')]"/>
  49. <filter name="filter_failed" string="Failed" domain="[('result','=', 'failed')]"/>
  50. <filter name="filter_successful" string="Successful" domain="[('result','=', 'successfull')]"/>
  51. </search>
  52. </field>
  53. </record>
  54. <!-- Model: res.banned.remote -->
  55. <record id="view_res_banned_remote_tree" model="ir.ui.view">
  56. <field name="model">res.banned.remote</field>
  57. <field name="arch" type="xml">
  58. <tree colors="gray: active==False">
  59. <field name="remote" />
  60. <field name="ban_date" />
  61. <field name="active" invisible="1" />
  62. </tree>
  63. </field>
  64. </record>
  65. <record id="view_res_banned_remote_form" model="ir.ui.view">
  66. <field name="model">res.banned.remote</field>
  67. <field name="arch" type="xml">
  68. <form>
  69. <sheet>
  70. <group>
  71. <field name="remote" />
  72. <field name="ban_date" />
  73. <field name="active" />
  74. <field name="description" />
  75. <field name="attempt_ids" />
  76. </group>
  77. </sheet>
  78. </form>
  79. </field>
  80. </record>
  81. <record id="view_res_banned_remote_search" model="ir.ui.view">
  82. <field name="model">res.banned.remote</field>
  83. <field name="arch" type="xml">
  84. <search>
  85. <field name="remote"/>
  86. </search>
  87. </field>
  88. </record>
  89. </data>
  90. </openerp>