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.

78 lines
3.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_auditlog_http_request_form" model="ir.ui.view">
  4. <field name="name">auditlog.http.request.form</field>
  5. <field name="model">auditlog.http.request</field>
  6. <field name="arch" type="xml">
  7. <form string="HTTP Request">
  8. <sheet>
  9. <group string="HTTP Request">
  10. <field name="root_url"/>
  11. <field name="name"/>
  12. <field name="create_date"/>
  13. <field name="user_context"/>
  14. <field name="http_session_id"/>
  15. </group>
  16. <group string="Logs">
  17. <field name="log_ids" nolabel="1"/>
  18. </group>
  19. </sheet>
  20. </form>
  21. </field>
  22. </record>
  23. <record id="view_auditlog_http_request_tree" model="ir.ui.view">
  24. <field name="name">auditlog.http.request.tree</field>
  25. <field name="model">auditlog.http.request</field>
  26. <field name="arch" type="xml">
  27. <tree string="HTTP Requests">
  28. <field name="name"/>
  29. <field name="create_date"/>
  30. <field name="http_session_id"/>
  31. </tree>
  32. </field>
  33. </record>
  34. <record id="view_auditlog_http_request_search" model="ir.ui.view">
  35. <field name="name">auditlog.http.request.search</field>
  36. <field name="model">auditlog.http.request</field>
  37. <field name="arch" type="xml">
  38. <search string="HTTP Requests">
  39. <field name="create_date"/>
  40. <field name="root_url"/>
  41. <field name="name"/>
  42. <field name="user_id"/>
  43. <field name="http_session_id"/>
  44. <group expand="0" string="Group By...">
  45. <filter name="group_by_root_url"
  46. string="Root URL"
  47. domain="[]" context="{'group_by':'root_url'}"/>
  48. <filter name="group_by_name"
  49. string="Path"
  50. domain="[]" context="{'group_by':'name'}"/>
  51. <filter name="group_by_create_date"
  52. string="Created on"
  53. domain="[]" context="{'group_by':'create_date'}"/>
  54. <filter name="group_by_user_id"
  55. string="User"
  56. domain="[]" context="{'group_by':'user_id'}"/>
  57. <filter name="group_by_http_session_id"
  58. string="User session"
  59. domain="[]" context="{'group_by':'http_session_id'}"/>
  60. </group>
  61. </search>
  62. </field>
  63. </record>
  64. <record model="ir.actions.act_window" id="action_auditlog_http_request_tree">
  65. <field name="name">HTTP Requests</field>
  66. <field name="type">ir.actions.act_window</field>
  67. <field name="res_model">auditlog.http.request</field>
  68. <field name="view_type">form</field>
  69. <field name="view_id" ref="view_auditlog_http_request_tree"/>
  70. </record>
  71. <menuitem id="menu_action_auditlog_http_request_tree"
  72. parent="menu_audit"
  73. action="action_auditlog_http_request_tree"/>
  74. </odoo>