This commit makes hotkey uses more coherent throughout the entire codebase by setting alt+q as main shortcurt for confirm and default actions and alt+x for cancel actions. task-3370463 closes odoo/odoo#127469 Related: odoo/enterprise#43694 Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
55 lines
2.5 KiB
XML
55 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="payment_link_wizard_view_form" model="ir.ui.view">
|
|
<field name="name">payment.link.wizard.form</field>
|
|
<field name="model">payment.link.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Generate Payment Link">
|
|
<div class="alert alert-warning fw-bold"
|
|
role="alert"
|
|
attrs="{'invisible': [('partner_email', '!=', False)]}">
|
|
This partner has no email, which may cause issues with some payment providers.
|
|
Setting an email for this partner is advised.
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="res_id" invisible="1"/>
|
|
<field name="res_model" invisible="1"/>
|
|
<field name="partner_id" invisible="1"/>
|
|
<field name="partner_email" invisible="1"/>
|
|
<field name="amount_max" invisible="1"/>
|
|
<field name="available_provider_ids" invisible="1"/>
|
|
<field name="has_multiple_providers" invisible="1"/>
|
|
<field name="description"/>
|
|
<field name="amount"/>
|
|
<field name="warning_message" invisible="1"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="payment_provider_selection"
|
|
attrs="{'invisible':[('has_multiple_providers', '=', False)]}"/>
|
|
</group>
|
|
</group>
|
|
<div name="payment_link_warning_information"
|
|
class="alert alert-warning text-center fw-bold"
|
|
role="alert"
|
|
attrs="{'invisible': [('warning_message', '=', '')]}">
|
|
<field name="warning_message"/>
|
|
</div>
|
|
<footer>
|
|
<field name="link"
|
|
string="Generate and Copy Payment Link"
|
|
readonly="1"
|
|
disabled="[('warning_message', '!=', '')]"
|
|
widget="CopyClipboardButton"
|
|
data-hotkey="q"/>
|
|
<button string="Close"
|
|
class="btn btn-secondary rounded-2"
|
|
special="cancel"
|
|
data-hotkey="x"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|