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.

80 lines
3.2 KiB

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 colors="orange: result == 'failed';red: result == 'banned'">
  10. <field name="attempt_date" />
  11. <field name="remote" />
  12. <field name="login" />
  13. <field name="result" />
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="view_res_authentication_attempt_graph" model="ir.ui.view">
  18. <field name="model">res.authentication.attempt</field>
  19. <field name="arch" type="xml">
  20. <graph>
  21. <field name="attempt_date" />
  22. <field name="result" />
  23. </graph>
  24. </field>
  25. </record>
  26. <record id="view_res_authentication_attempt_search" model="ir.ui.view">
  27. <field name="model">res.authentication.attempt</field>
  28. <field name="arch" type="xml">
  29. <search>
  30. <field name="login"/>
  31. <filter name="filter_no_success" string="Without Success" domain="[('result','!=', 'successfull')]"/>
  32. <filter name="filter_banned" string="Banned" domain="[('result','=', 'banned')]"/>
  33. <filter name="filter_failed" string="Failed" domain="[('result','=', 'failed')]"/>
  34. <filter name="filter_successful" string="Successful" domain="[('result','=', 'successfull')]"/>
  35. </search>
  36. </field>
  37. </record>
  38. <!-- Model: res.banned.remote -->
  39. <record id="view_res_banned_remote_tree" model="ir.ui.view">
  40. <field name="model">res.banned.remote</field>
  41. <field name="arch" type="xml">
  42. <tree colors="gray: active==False">
  43. <field name="remote" />
  44. <field name="ban_date" />
  45. <field name="active" invisible="1" />
  46. </tree>
  47. </field>
  48. </record>
  49. <record id="view_res_banned_remote_form" model="ir.ui.view">
  50. <field name="model">res.banned.remote</field>
  51. <field name="arch" type="xml">
  52. <form>
  53. <sheet>
  54. <group>
  55. <field name="remote" />
  56. <field name="ban_date" />
  57. <field name="active" />
  58. <field name="description" />
  59. <field name="attempt_ids" />
  60. </group>
  61. </sheet>
  62. </form>
  63. </field>
  64. </record>
  65. <record id="view_res_banned_remote_search" model="ir.ui.view">
  66. <field name="model">res.banned.remote</field>
  67. <field name="arch" type="xml">
  68. <search>
  69. <field name="remote"/>
  70. </search>
  71. </field>
  72. </record>
  73. </odoo>