Files
odoo_source/addons/stock_sms/wizard/confirm_stock_sms_views.xml
T
Kevin Baptiste 86aa7b78aa [IMP] *: introduce data-hotkey on form and modal views
Define `data-hotkey` on most used action buttons.

For the modals, the following keys are dedicated for "special"
actions:
 - Alt+G: add
 - Alt+V: save
 - Alt+Z: cancel

closes odoo/odoo#73275

Taskid: 2588233
Related: odoo/enterprise#19464
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-07-15 08:39:49 +00:00

21 lines
979 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_confirm_stock_sms" model="ir.ui.view">
<field name="name">stock_confirm_sms</field>
<field name="model">confirm.stock.sms</field>
<field name="arch" type="xml">
<form string="SMS">
You are about to confirm this Delivery Order by SMS Text Message.<br/>
This feature can easily be disabled from the Settings of Inventory or by clicking on "Disable SMS".<br/>
<footer>
<button name="send_sms" type="object" data-hotkey="q"
string="Confirm" class="oe_highlight"/>
<button name="dont_send_sms" type="object" data-hotkey="w"
string="Disable SMS" class="btn btn-secondary"/>
<button special="cancel" data-hotkey="z" string="Cancel"/>
</footer>
</form>
</field>
</record>
</odoo>