Files
odoo_source/addons/snailmail/wizard/snailmail_confirm_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

17 lines
811 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="snailmail_confirm_view" model="ir.ui.view">
<field name="name">snailmail.confirm.view</field>
<field name="model">snailmail.confirm</field>
<field name="arch" type="xml">
<form string="Snailmail Confirmation">
<p>You are about to send this <field name="model_name" readonly="1" class="oe_inline" /> by post. Are you sure you want to continue?</p>
<footer>
<button string="Confirm" name="action_confirm" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" name="action_cancel" type="object" class="btn-secondary" data-hotkey="x"/>
</footer>
</form>
</field>
</record>
</odoo>