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.

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