[FIX] sale: Change 'create invoice' shortcut to alt-i
Resolves the conflict where two shortcuts (alt-c for 'new' and 'create invoice') existed, but only 'new' could be triggered. Updates the shortcut for 'create invoice' to alt-i, ensuring both shortcuts are functional and accessible. task-3628572 closes odoo/odoo#146307 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -247,10 +247,10 @@
|
||||
confirm="Are you sure you want to void the authorized transaction? This action can't be undone."
|
||||
invisible="not authorized_transaction_ids"/>
|
||||
<button id="create_invoice" name="%(sale.action_view_sale_advance_payment_inv)d" string="Create Invoice"
|
||||
type="action" class="btn-primary" data-hotkey="c"
|
||||
type="action" class="btn-primary" data-hotkey="i"
|
||||
invisible="invoice_status != 'to invoice'"/>
|
||||
<button id="create_invoice_percentage" name="%(sale.action_view_sale_advance_payment_inv)d" string="Create Invoice"
|
||||
type="action" context="{'default_advance_payment_method': 'percentage'}" data-hotkey="c"
|
||||
type="action" context="{'default_advance_payment_method': 'percentage'}" data-hotkey="i"
|
||||
invisible="invoice_status != 'no' or state != 'sale'"/>
|
||||
<button name="action_quotation_send" id="send_by_email_primary" string="Send by Email" type="object" data-hotkey="g"
|
||||
invisible="state != 'draft'" class="btn-primary"
|
||||
|
||||
Reference in New Issue
Block a user