helpdesk_workflow_template_apply_wizard_views.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="helpdesk_workflow_template_apply_wizard_view_form" model="ir.ui.view">
  4. <field name="name">helpdesk.workflow.template.apply.wizard.form</field>
  5. <field name="model">helpdesk.workflow.template.apply.wizard</field>
  6. <field name="arch" type="xml">
  7. <form string="Apply Workflow Template">
  8. <sheet>
  9. <group>
  10. <group>
  11. <field name="team_id" readonly="1"/>
  12. <field name="workflow_template_id" options="{'no_create': True}"/>
  13. </group>
  14. <group>
  15. <field name="replace_existing"/>
  16. </group>
  17. </group>
  18. <group string="Summary" class="mt-4">
  19. <group string="Template Content">
  20. <label for="stage_count" string="Stages:"/>
  21. <div class="text-muted">
  22. <field name="stage_count" readonly="1"/>
  23. </div>
  24. <label for="sla_count" string="SLA Policies:"/>
  25. <div class="text-muted">
  26. <field name="sla_count" readonly="1"/>
  27. </div>
  28. </group>
  29. <group string="Current Team">
  30. <label for="existing_stage_count" string="Existing Stages:"/>
  31. <div class="text-muted">
  32. <field name="existing_stage_count" readonly="1"/>
  33. </div>
  34. <label for="existing_sla_count" string="Existing SLA Policies:"/>
  35. <div class="text-muted">
  36. <field name="existing_sla_count" readonly="1"/>
  37. </div>
  38. </group>
  39. </group>
  40. <div class="alert alert-warning" role="alert" invisible="not replace_existing">
  41. <strong>Warning:</strong> This will remove all existing stages and SLA policies for this team.
  42. </div>
  43. </sheet>
  44. <footer>
  45. <button name="action_apply_template" string="Apply Template" type="object" class="btn-primary"/>
  46. <button string="Cancel" class="btn-secondary" special="cancel"/>
  47. </footer>
  48. </form>
  49. </field>
  50. </record>
  51. <record id="helpdesk_workflow_template_apply_wizard_action" model="ir.actions.act_window">
  52. <field name="name">Apply Workflow Template</field>
  53. <field name="res_model">helpdesk.workflow.template.apply.wizard</field>
  54. <field name="view_mode">form</field>
  55. <field name="target">new</field>
  56. <field name="binding_model_id" ref="helpdesk.model_helpdesk_team"/>
  57. <field name="binding_view_types">form</field>
  58. </record>
  59. </odoo>