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.

98 lines
4.3 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. </tree>
  29. </field>
  30. </record>
  31. <record id="view_res_authentication_attempt_graph" model="ir.ui.view">
  32. <field name="model">res.authentication.attempt</field>
  33. <field name="arch" type="xml">
  34. <graph>
  35. <field name="attempt_date" />
  36. <field name="result" />
  37. </graph>
  38. </field>
  39. </record>
  40. <record id="view_res_authentication_attempt_search" model="ir.ui.view">
  41. <field name="model">res.authentication.attempt</field>
  42. <field name="arch" type="xml">
  43. <search>
  44. <field name="login"/>
  45. <filter name="filter_no_success" string="Without Success" domain="[('result','!=', 'successfull')]"/>
  46. <filter name="filter_banned" string="Banned" domain="[('result','=', 'banned')]"/>
  47. <filter name="filter_failed" string="Failed" domain="[('result','=', 'failed')]"/>
  48. <filter name="filter_successful" string="Successful" domain="[('result','=', 'successfull')]"/>
  49. </search>
  50. </field>
  51. </record>
  52. <!-- Model: res.banned.remote -->
  53. <record id="view_res_banned_remote_tree" model="ir.ui.view">
  54. <field name="model">res.banned.remote</field>
  55. <field name="arch" type="xml">
  56. <tree colors="gray: active==False">
  57. <field name="remote" />
  58. <field name="ban_date" />
  59. <field name="active" invisible="1" />
  60. </tree>
  61. </field>
  62. </record>
  63. <record id="view_res_banned_remote_form" model="ir.ui.view">
  64. <field name="model">res.banned.remote</field>
  65. <field name="arch" type="xml">
  66. <form>
  67. <sheet>
  68. <group>
  69. <field name="remote" />
  70. <field name="ban_date" />
  71. <field name="active" />
  72. <field name="description" />
  73. <field name="attempt_ids" />
  74. </group>
  75. </sheet>
  76. </form>
  77. </field>
  78. </record>
  79. <record id="view_res_banned_remote_search" model="ir.ui.view">
  80. <field name="model">res.banned.remote</field>
  81. <field name="arch" type="xml">
  82. <search>
  83. <field name="remote"/>
  84. </search>
  85. </field>
  86. </record>
  87. </data>
  88. </openerp>