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.

65 lines
2.6 KiB

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