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.

72 lines
3.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_auditlog_http_session_form" model="ir.ui.view">
  5. <field name="name">auditlog.http.session.form</field>
  6. <field name="model">auditlog.http.session</field>
  7. <field name="type">form</field>
  8. <field name="arch" type="xml">
  9. <form string="User session">
  10. <sheet>
  11. <group string="User session">
  12. <field name="user_id"/>
  13. <field name="name"/>
  14. <field name="create_date"/>
  15. </group>
  16. <group string="HTTP Requests">
  17. <field name="http_request_ids" nolabel="1"/>
  18. </group>
  19. </sheet>
  20. </form>
  21. </field>
  22. </record>
  23. <record id="view_auditlog_http_session_tree" model="ir.ui.view">
  24. <field name="name">auditlog.http.session.tree</field>
  25. <field name="model">auditlog.http.session</field>
  26. <field name="type">tree</field>
  27. <field name="arch" type="xml">
  28. <tree string="User sessions">
  29. <field name="user_id"/>
  30. <field name="name"/>
  31. <field name="create_date"/>
  32. </tree>
  33. </field>
  34. </record>
  35. <record id="view_auditlog_http_session_search" model="ir.ui.view">
  36. <field name="name">auditlog.http.session.search</field>
  37. <field name="model">auditlog.http.session</field>
  38. <field name="type">search</field>
  39. <field name="arch" type="xml">
  40. <search string="User sessions">
  41. <field name="user_id"/>
  42. <field name="name"/>
  43. <field name="create_date"/>
  44. <group expand="0" string="Group By...">
  45. <filter name="group_by_user_id"
  46. string="User"
  47. domain="[]" context="{'group_by':'user_id'}"/>
  48. <filter name="group_by_create_date"
  49. string="Created on"
  50. domain="[]" context="{'group_by':'create_date'}"/>
  51. </group>
  52. </search>
  53. </field>
  54. </record>
  55. <record model="ir.actions.act_window" id="action_auditlog_http_session_tree">
  56. <field name="name">User sessions</field>
  57. <field name="type">ir.actions.act_window</field>
  58. <field name="res_model">auditlog.http.session</field>
  59. <field name="view_type">form</field>
  60. <field name="view_id" ref="view_auditlog_http_session_tree"/>
  61. </record>
  62. <menuitem id="menu_action_auditlog_http_session_tree"
  63. parent="menu_audit"
  64. action="action_auditlog_http_session_tree"/>
  65. </data>
  66. </openerp>