website_helpdesk_form.xml 843 B

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