helpdesk_ticket_views.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Extend helpdesk.ticket form view -->
  4. <record id="helpdesk_ticket_view_form_inherit_helpdesk_extras" model="ir.ui.view">
  5. <field name="name">helpdesk.ticket.form.inherit.helpdesk.extras</field>
  6. <field name="inherit_id" ref="helpdesk.helpdesk_ticket_view_form"/>
  7. <field name="model">helpdesk.ticket</field>
  8. <field name="arch" type="xml">
  9. <!-- Add Extras page with all custom fields -->
  10. <xpath expr="//notebook" position="inside">
  11. <page string="Extras" name="extras">
  12. <group>
  13. <group string="Request Information">
  14. <field name="request_type_id" required="1"/>
  15. <field name="affected_module_id"/>
  16. <field name="business_impact"/>
  17. </group>
  18. <group string="Details">
  19. <field name="reproduce_steps"
  20. invisible="request_type_code != 'incident'"
  21. placeholder="Describe step by step how to reproduce the issue..."/>
  22. <field name="business_goal"
  23. invisible="request_type_code != 'improvement'"
  24. placeholder="Describe the business objective for this improvement..."/>
  25. </group>
  26. </group>
  27. <group string="Approval &amp; Billing">
  28. <field name="client_authorization"/>
  29. <field name="estimated_hours"/>
  30. <field name="approval_status"/>
  31. </group>
  32. <group string="Attachments">
  33. <field name="attachment_ids" widget="many2many_binary"/>
  34. </group>
  35. <group string="Template Information" invisible="not has_template">
  36. <field name="team_id" invisible="1"/>
  37. <div class="alert alert-info" role="alert">
  38. <strong>Template Active:</strong> This ticket uses a template configured for the team.
  39. <br/>
  40. <small>Template fields are configured in Helpdesk > Configuration > Templates</small>
  41. <br/>
  42. <small>Template fields will be displayed in the web form when creating tickets.</small>
  43. </div>
  44. </group>
  45. </page>
  46. </xpath>
  47. </field>
  48. </record>
  49. <!-- Extend helpdesk.ticket tree view -->
  50. <record id="helpdesk_ticket_view_tree_inherit_helpdesk_extras" model="ir.ui.view">
  51. <field name="name">helpdesk.ticket.tree.inherit.helpdesk.extras</field>
  52. <field name="inherit_id" ref="helpdesk.helpdesk_tickets_view_tree"/>
  53. <field name="model">helpdesk.ticket</field>
  54. <field name="arch" type="xml">
  55. <xpath expr="//field[@name='name']" position="after">
  56. <field name="request_type_id" optional="show"/>
  57. <field name="affected_module_id" optional="show"/>
  58. <field name="approval_status" optional="show"/>
  59. </xpath>
  60. </field>
  61. </record>
  62. </odoo>