<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!-- Add facility_id to technician task form -->
    <record id="view_technician_task_form_ltc" model="ir.ui.view">
        <field name="name">fusion.technician.task.form.ltc</field>
        <field name="model">fusion.technician.task</field>
        <field name="inherit_id" ref="fusion_tasks.view_technician_task_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='priority']" position="after">
                <field name="facility_id"
                       invisible="task_type != 'ltc_visit'"/>
            </xpath>
        </field>
    </record>

</odoo>
