| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <record id="helpdesk_workflow_template_apply_wizard_view_form" model="ir.ui.view">
- <field name="name">helpdesk.workflow.template.apply.wizard.form</field>
- <field name="model">helpdesk.workflow.template.apply.wizard</field>
- <field name="arch" type="xml">
- <form string="Apply Workflow Template">
- <sheet>
- <group>
- <group>
- <field name="team_id" readonly="1"/>
- <field name="workflow_template_id" options="{'no_create': True}"/>
- </group>
- <group>
- <field name="replace_existing"/>
- </group>
- </group>
-
- <group string="Summary" class="mt-4">
- <group string="Template Content">
- <label for="stage_count" string="Stages:"/>
- <div class="text-muted">
- <field name="stage_count" readonly="1"/>
- </div>
- <label for="sla_count" string="SLA Policies:"/>
- <div class="text-muted">
- <field name="sla_count" readonly="1"/>
- </div>
- </group>
- <group string="Current Team">
- <label for="existing_stage_count" string="Existing Stages:"/>
- <div class="text-muted">
- <field name="existing_stage_count" readonly="1"/>
- </div>
- <label for="existing_sla_count" string="Existing SLA Policies:"/>
- <div class="text-muted">
- <field name="existing_sla_count" readonly="1"/>
- </div>
- </group>
- </group>
-
- <div class="alert alert-warning" role="alert" invisible="not replace_existing">
- <strong>Warning:</strong> This will remove all existing stages and SLA policies for this team.
- </div>
- </sheet>
- <footer>
- <button name="action_apply_template" string="Apply Template" type="object" class="btn-primary"/>
- <button string="Cancel" class="btn-secondary" special="cancel"/>
- </footer>
- </form>
- </field>
- </record>
- <record id="helpdesk_workflow_template_apply_wizard_action" model="ir.actions.act_window">
- <field name="name">Apply Workflow Template</field>
- <field name="res_model">helpdesk.workflow.template.apply.wizard</field>
- <field name="view_mode">form</field>
- <field name="target">new</field>
- <field name="binding_model_id" ref="helpdesk.model_helpdesk_team"/>
- <field name="binding_view_types">form</field>
- </record>
- </odoo>
|