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>
19 lines
747 B
XML
19 lines
747 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_stock_quantity_history" model="ir.ui.view">
|
|
<field name="name">Inventory Report at Date</field>
|
|
<field name="model">stock.quantity.history</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Choose your date">
|
|
<group>
|
|
<field name="inventory_datetime"/>
|
|
</group>
|
|
<footer>
|
|
<button name="open_at_date" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|