1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/helpdesk_fsm/views/helpdesk_ticket_views.xml
2024-12-10 09:04:09 +07:00

25 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="helpdesk_ticket_view_form" model="ir.ui.view">
<field name="name">helpdesk.ticket.form.inherit</field>
<field name="model">helpdesk.ticket</field>
<field name="priority">80</field>
<field name="inherit_id" ref="helpdesk.helpdesk_ticket_view_form"/>
<field name="arch" type="xml">
<xpath expr="header" position="inside">
<field name="use_fsm" invisible="1" />
<button class="btn btn-secondary" name="action_generate_fsm_task" type="object" string="Plan Intervention" groups="industry_fsm.group_fsm_user" invisible="not use_fsm" data-hotkey="w" />
</xpath>
<xpath expr="//button[@name='action_open_helpdesk_ticket']" position="before">
<button class="oe_stat_button" name="action_view_fsm_tasks" type="object" icon="fa-tasks" invisible="fsm_task_count == 0" groups="industry_fsm.group_fsm_user">
<field string="Tasks" name="fsm_task_count" widget="statinfo" />
</button>
</xpath>
</field>
</record>
</data>
</odoo>