Files
odoo_source/odoo/addons/base/views/res_config_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

35 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="res_config_view_base" model="ir.ui.view">
<field name="name">res.config.view.base</field>
<field name="model">res.config</field>
<field name="arch" type="xml">
<form string="Configuration">
<group name="res_config_contents"/>
<footer>
<button name="action_next" type="object" string="Apply" class="btn-primary" data-hotkey="q"/>
<button name="action_skip" type="object" special="cancel" data-hotkey="z" string="Cancel" class="btn-secondary"/>
</footer>
</form>
</field>
</record>
<record id="res_config_installer" model="ir.ui.view">
<field name="name">Inheritable view for installer objects</field>
<field name="model">res.config.installer</field>
<field name="arch" type="xml">
<form string="Configuration Installer">
<separator string="title" colspan="4"/>
<footer>
<button name="action_next" type="object" string="Install Apps" class="btn-primary" data-hotkey="q"/>
<button string="Skip" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</data>
</odoo>