| 1234567891011121314151617 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <!-- Extend helpdesk ticket form to add blocking logic when no hours available -->
- <template id="helpdesk_ticket_form_block" name="Helpdesk Ticket Form Block" inherit_id="website_helpdesk.ticket_submit_form">
- <xpath expr="//form[@id='helpdesk_ticket_form']" position="attributes">
- <attribute name="class" add="s_helpdesk_form_blockable"/>
- </xpath>
-
- <!-- Add blocking message div -->
- <xpath expr="//div[@id='helpdesk_section']" position="inside">
- <div id="helpdesk_form_block_message" class="alert alert-warning d-none" role="alert" style="margin-bottom: 20px;">
- <strong>Información:</strong> <span id="helpdesk_form_block_message_text"></span>
- </div>
- </xpath>
- </template>
-
- </odoo>
|