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.

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