[ADD] helpdesk_convert_ticket_to_task: add new button in ticket to convert into task with many informations

This commit is contained in:
2025-07-08 12:32:01 +02:00
committed by Quentin Mondot
parent 63a2c8f28f
commit a6da3de63a
8 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="convert_to_task_helpdesk_ticket_view_form" model="ir.ui.view">
<field name="name">timesheet.helpdesk.ticket.form.view</field>
<field name="model">helpdesk.ticket</field>
<field name="inherit_id" ref="helpdesk_mgmt.ticket_view_form" />
<field name="priority" eval="20" />
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button
name="button_convert_to_task"
title="Convert to task"
string="Convert to task"
icon="fa-tasks text-success"
type="object"
confirm="Are you sure you want to convert this ticket into a task ? You'll be redirected to the newly created task and this ticket will be archived."
/>
</div>
</field>
</record>
</odoo>